Thursday, September 15, 2016

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


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 suggest using the plugin HardTime, instead of HardMode. Here it is: https://github.com/takac/vim-hardtime
Instead of disabling the buttons, it puts a cooldown on them. I use (and suggest) the following settings for HardTime:

let g:hardtime_allow_different_key = 1
let g:hardtime_default_on = 1
let g:list_of_disabled_keys = ["<UP>", "<DOWN>", "<LEFT>", "<RIGHT>"]

The allow_different_key will let you do something like jh quickly, while without it it would put a cooldown anyways. However it's abusable by doing jhjhjhjhjhjhjh :D

Other options are self-explanatory.

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