20
loading...
This website collects cookies to deliver better user experience
w
-> move forward by a word (considering punctuations as separate words).W
-> move forward by a word (punctuations ignored).b
-> move backward by a word (considering punctuations as separate words).B
-> move backward by a word (punctuations ignored).e
-> move to end of a word (considering punctuations as separate words).E
-> move to end of a word (punctuations ignored).0
-> move to the beginning of a sentence.$
-> move to the end of a sentence.6w
. This can improve your thinking and typing as well, good signs of a programmer Eh!gg
-> move to the beginning of a file.G
-> move to the end of a file.Ctrl + e
-> move the screen down without moving the cursor.Ctrl + y
-> move the screen up without moving the cursor.Ctrl + f
-> move forward one entire screen.Ctrl + b
-> move backward one entire screen.Ctrl + d
-> move forward half screen.Ctrl + u
-> move backward half screen.gd
-> move to the local declaration of any code.gD
-> move to the global declaration of any code.%
-> move between pairs of ( ), { }, [ ] or any other type of such braces.{
-> move to the next paragraph/ code block/ function/ etc)}
-> move to the previous paragraph/ code block/ functions/ etc)fa
-> move to the next occurrence of the character 'a' in a sentence.Fa
-> move to the previous occurrence of the character 'a' in a sentence.ta
-> jump to before of the next occurrence of the character 'a' in a sentence. Ta
-> jump to after of the previous occurrence of the character 'a' in a sentence.*
-> next occurrence of the word under the cursor.#
-> previous occurrence of the word under the cursor.n
-> next occurrence of the word searched pattern.N
-> previous occurrence of the word searched pattern./pattern
or ?pattern
Enter and navigate to the next(*
or n
) and previous(#
or N
) occurrence of that pattern match.Ctrl + O
-> move in the previously opened file.Ctrl + I
-> move in the next file.Ctrl + ^
to move the previous two opened files.:bn
for moving into the next buffer, and :bp
to move in the previous buffer. You always have an option to move from a buffer using the file name :b filename
or using the index as :bindex
.:tabnew filename
-> create a Tab of a file.gt
-> move to the next tab.ngt
-> move to the nth tab.gT
-> move to the previous tab:tabo
-> close all the tabs except the current one.:tabc
-> close the tab.:tabm n
-> move the current tab to nth position.mn
-> set the current position as mark 'a'.n
-> jump to the position of mark 'n'.0
-> jump to the position where vim was last exited.
"` -> jump to the position when the last edit was made in the file.Ctrl + w + r
-> move the split down.Ctrl + w + R
-> move the split up.Ctrl + w + h
-> jump to the left split.Ctrl + w + j
-> jump to the split down.Ctrl + w + k
-> jump to the upper split.Ctrl + w + l
-> jump to the left split.20