Vim habbit
Let's talk about how I use my Vim first.
Commands that I uses are:
a / A, i / I, h, j, k, l, d{motion}, H, M, L, c-f, c-b, t, gg, G, za, v / V, <, >, u, c-r, %, $, ^, 0
Commands that are common to others but I didn't know:
c-e, c-d, c-y, c-u, c, e, U
c is d then INSERT but somewhat better. I typed 1 less key ( yay! ). cc and c{motion} are both convenient commands. Which I use d{motion}i all the time before.
Considering I am using dvorak layout. c-e, c-y are appealing but I need to twist my fingers to press them. On the other hand, I think combinations of H, M, L, c-f, c-b are generally better then c-u, c-d since the cursor position of the later were somewhat unpredictable ( it doesn't always stays at the some position relative to the window if it comes near to the top / end of a buffer ).
Implementations
The motions commands are simple because it's just another case for moveX / Y and panX / Y. It literally takes 1 - 2 minutes to write and tests if it works.
However, what toke me 2 days to craft is that quirky tab character again which I've just discovered it's causing other conditions to fail. Fuck, I think I really need to setup an automated test isn't it?
( Mumbling mumbling ... need to find another machine... )
So ... I'll need to figure out how to implement :'<,'> next.
Articles in the series
Useful Links
Project home |
Demo 斟酌 鵬兄
Tue Jan 31 2017 05:51:30 GMT+0000 (Coordinated Universal Time)
Last modified: Tue Jan 31 2017 05:54:02 GMT+0000 (Coordinated Universal Time)