4 ms·
Hmm. I use vim sometimes to edit text, and I find it markedly less ergonomic than using vim for editing code, for one key reason: text is typically organized in
by paultopia 8y ago
Hmm. I use vim sometimes to edit text, and I find it markedly less ergonomic than using vim for editing code, for one key reason: text is typically organized in paragraphs, rather than lines, and all the vim movements make much more sense for lines.
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...
- opportune 8y agoif you know the characters of the word you want to jump to you can type /<prefix> <ENTER> and hit n to cycle through the substring search results
- replax 8y agoI agree that it can be a bit annoying for working with visual lines. You can move up and down visual lines by using ‚gj‘ and ‚gk‘ instead of ‚j‘ and ‚k‘.
- iimblack 8y agoTwo things that help me a lot when working in paragraphs: - 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.
- licebmi__at__ 8y agoI work with plenty of text in Org-mode using emacs and evil (vim mode for emacs) and I find it just fine. Most of the time, I just use / to search where I want to edit; but maybe you can use something like this: https://github.com/easymotion/vim-easymotion https://github.com/easymotion/vim-easymotion Also you can research on soft and hard line breaks, so you can move easily within the paragraph VimPencil could help you with that.
- nickjj 8y agoOne habit I picked up early with writing was to use hard line breaks at 80 chars. 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.