Jump to Column (Not Line) in vim
Everyone knows you can use :10
while in normal mode to jump to the tenth line in vim.
But did you know, 10|
can be used in normal mode to jump to the tenth character of the current line?
I find it useful for breaking up lines that are longer than they should be. For example, you can use 80|
while editing Python code to put the cursor where you should insert a line break (or close to it!)
Written by John Maguire
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#