VimArea - Day 27 - Other *common* commands
After some burning from reddit. I've again realized that I am a stupid person. ( But I'll be better if I keep learning! ) There were bunch of commands I didn't even heard of. After some trying, some of them are really convenient and useful.
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 ).
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.
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
VimArea - Day 30 - :'<,'>, marks and PRINT ( incomplete )
VimArea - Day 27 - Other *common* commands
VimArea - Day 25 - VA_REC
VimArea - Day 23 - The quirky tab character
VimArea - Day 16 - line shifting
VimArea - Day 14 - VISUAL - selections
VimArea - Day 13 - The command bar
VimArea - Day 10 - The wicked PUT command
VimArea - Day 9 - VISUAL - SyntaxAnalyzer
VimArea - Day 7 - Complicated control schema
VimArea - Day 5 - Commands ( failed )
VimArea - Day 2 - aixu
VimArea - Day 1 - hjkl
VimArea - Day 27 - Other *common* commands
VimArea - Day 25 - VA_REC
VimArea - Day 23 - The quirky tab character
VimArea - Day 16 - line shifting
VimArea - Day 14 - VISUAL - selections
VimArea - Day 13 - The command bar
VimArea - Day 10 - The wicked PUT command
VimArea - Day 9 - VISUAL - SyntaxAnalyzer
VimArea - Day 7 - Complicated control schema
VimArea - Day 5 - Commands ( failed )
VimArea - Day 2 - aixu
VimArea - Day 1 - hjkl
Useful Links
Project home | DemoTue 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)
Comments
No comments here.
Do you even comment?
website:
Not a valid website
Invalid email format
Please enter your email
*Name:
Please enter a name
Submit
抱歉,Google Recaptcha 服務被牆掉了,所以不能回覆了