Splitting lines with vim
In normal mode J
will join the current line with the next.
This mapping will do the opposite, split the line at the cursor position.
nmap K i<CR><Esc>k$
Written by Daiderd Jordan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#