Wednesday, September 14, 2016

Re: Trying to learn to Work with Text without using J,K,H,L and arrow keys

On 13.09.16 08:23, Amit Christian wrote:
> Here is my question:
>
> I find it still difficult to go to next lines or browsing up or down
> through the text. Can any one please help me with efficient use of
> working with text without a usual j,k,h,l use? Are there resources or
> help on internet? What are your strategies to work with text?

One thing I didn't see explicitly described so far is:

:set rnumber

Now the current line is 0, and all other lines bear their offset
therefrom. If I wished e.g. to go up to trim the sentence after "j,k,h,l
use?" in the above quoted text, I could use 9k) from here - without the
delay and effort of counting lines first.

Mind you, my natural behaviour would be to use (from here) 4{( ,
i.e. back 4 paragraphs plus one sentence, find that was one sentence
short, and whack ( again. If it's late at night, then just whacking {
then ( , until the cursor arrives, is about as much as available
brainpower supports.

Either way, we're spot on for a d) to delete the sentence, without any
hjkl hocus-pocus. (I use the cursor keys within a word, and for up/down
a few lines.)

With rnumber set in .vimrc, it is handy to put "set norumber" in a
modeline at the end of files in which it would be annoying.

Erik

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: