The only thing that I miss about using other editors is finding my place with the mouse. I can look with my eyes to a specific area on the file and with a motion of the mouse and a click I am there. With VIM i have to jjjjjkkkkkkjjjjhhhh… almost there hhhhh oh crap I missed by 3 characters, lll.
I am learning to do marks and i found a bookmarks plugin that is great, I can create markers and destroy them with <f3> and navigate to them with unfortunately the marks are forgotten when the file is closed.
How do you all super navigate files? I know I could also do 5j7k4j5h and so forth, but there must be a plugin that can read my eyes and put the cursor where I really need it..
I also have learned to use /% to search for a specific term. It does help but all the matching characters are highlighted through out the document.
Try
$ vimtutor, it will teach you everything you need to know to get started.hjklare the tip of the top of the iceberg and very rarely used, at least in my case.wWEeandBbgegEall allow to move word by word:wandego forward,WandEtake whitespace and punctuation into accountbandgego backward,BandgEtake whitespace and punctuation into accountfFtTare used to reach for a particular character on the current line and;,are used to repeat that motion, in the same direction for;and in the opposite direction for,:fmjumps ON the nextmforward,Fgoes backwardtmjumps BEFORE the nextmforward,Tgoes backward/?are used to jump to the first occurrence of a pattern from the current cursor position:/patterngoes forward?patterngoes backward0$are used to jump to the first and last character of the line.^g_are used to jump to the first and last printable character of the line.Single and combined
()[]{}are used to move phrase by phrase or paragraph by paragraph or code block by code block.<C-b>and<C-f>are used to scroll by screen backward and forward.<C-u>and<C-d>are used to scroll by half-screen backward and forward.H,MandLmove the cursor to the top, middle, bottom of the viewport, respectively.zt,zzandzbmove the line under the cursor to the top, middle, bottom of the viewport, respectively.And so on.
:help motion.txtwill blow your mind.