Wednesday, September 14, 2016

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

On Tuesday, September 13, 2016 at 3:10:36 PM UTC-5, Nicola wrote:
> On 2016-09-13 15:23:57 +0000, Amit Christian said:
>
> > I came across this webpage
> > (http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/), which
> > recommends to stop using j,k,h,l and arrow keys and promote use of
> > other more efficient keys to browse through the code. I am intermediate
> > level of Vim user.
> >
> > I have disabled (temporarily) the use of j, k, h, l (using HardMode vim
> > plugin). It has been a little challenge to work with the code since
> > then. But I know it will help me to be more efficient with Vim.
> >
> > - I have so far used, w, b, e, ge etc to move around the lines.
> > - Also have been using f + character to move through the line.
> > - And have been using little bit of marks and / search to find through
> > the code.
> >
> >
> > 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?
>
> I find tags one of the fastest way to browse through code. Plugins like
> CtrlP come with support for tags with minimal configuration (install
> ctags and put `let g:ctrlp_extensions = ['buffertag']` in your vimrc
> should be enough for a single file), but using ctags with built-in Vim
> mappings is not difficult either, and pretty efficient.
>
> When I started learning Vim, I used to write down the mappings I was
> learning into a text file that I always kept open in Vim. You may use
> something like Cheat40 for such purpose (Cheat40 comes with a default
> list of mappings, you may especially be interested in the "Go" section).
>
> Regarding jklm, do you use them with counts? Do you have relative line
> numbers on (:h 'rnu')? Often, the simplest way to jump to the desired
> line is just to type something like 8j or 14k.
>
> Last suggestion: if you don't mind installing plugins, there are
> several extensions to built-in movements. The most popular is probably
> EasyMotion, but my personal favourite is Sneak.
>
> Nicola

Thanks. Nicola. I had heard about EasyMotion, but never tried it. I just started using it, it does cover most of my needs (without using j,k,h,l!!!). Thanks.

--
--
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:

Post a Comment