Skip to content

Instantly share code, notes, and snippets.

@leemeichin
Created December 20, 2016 21:12
Show Gist options
  • Save leemeichin/a4f8fec62cb6d2c56c86f215c0c4fb57 to your computer and use it in GitHub Desktop.
Save leemeichin/a4f8fec62cb6d2c56c86f215c0c4fb57 to your computer and use it in GitHub Desktop.
Break lines at terminal width
hook buffer InsertChar [^\n] %sh{
echo exec -draft "gh<a-k>.{$(tput cols),}<ret><a-;>bi<ret><esc>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment