by paultopia · 7y ago · 0 comments
Like, if I'm editing a block of text in a long paragraph that looks like a single line to vim, I don't have a mouse anymore, and up-down movements just leave the paragraph, so I usually find myself with awkward commands like `50w` to try and guess the number of words to move to the point where I'm trying to edit. Sadness.
Then again, this might just be because I don't have enough vim skillz yet. There's probably some command to make vim pretend a visual line is a real line...
- gj instead of j and gk instead of k to move up and down by visual line instead of line number.
- Just go where I want by using / and then typing the word I want to navigate to. No need to guess how many words in it is.
Also you can research on soft and hard line breaks, so you can move easily within the paragraph VimPencil could help you with that.
IMO, this makes it a lot easier to work with. You always know where your line ends because it matches up with the break.
You can even configure Vim to input the breaks for you so you don't need to worry about micro-managing them as you reword and edit sentences.