Vim Navigation Requires Too Much Thinking -


i've been using vim few years , love how easy simple tasks insert above current line, delete whole line, etc. i've mapped caps lock escape because of it!

one problem vim never on how thinking navigation requires compared mouse movements, after you've learned keys. know of movements %, ^, $, f/f, t/t , using numbers before command feel takes lot more effort use them , disrupt workflow.

for example, need delete "/many/sections/" of url , cursor in middle of word "really":

http://this/is/a/real|ly/long/url/with/many/sections/

with mouse, takes no thinking power click , select sections want remove , hit delete.

if in vim, find myself thinking: ok, first $ brings cursor end. want delete sections can use '/' deliminator , have count how many of '/' want move back. it's 2 , have search backwards it's f, not f. think command should $d2f/.

alternatively, have used 'm' landmark cursor , delete end there i'd have scan url letters use. , if there m, i'd have press ; repeatedly or start counting.

this seems lot harder using mouse, delay of moving hands off keyboard. true multiple line selections find myself spending lot of time counting words or lines or looking deliminators.

also, command either deletes or doesn't delete deliminator characters because used f instead of t or vice versa whereas mouse, can pinpoint i'm trying select.

the /maenterd quickest solution , not require hard motion planning. (and use ? reverse motion).

but if feel need more motion, should check easymotion plugin. expands f,f motion whole window, rather single line.

actually, agree using f quite cumbersome, i'd rather use text object, vi) or dip.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -