Those are the commands which I frequently use & feel it effective & easy.
:source %to reload vimrc:PluginInstallto install plugin using Vundle
^– goes to the start of line, remains in command mode.I– (uppercase i) goes to the start of line, switches to insert mode$– go to the end of the current line, remains in command mode, newline character are included.A– goes to the end of the current line, switches to insert mode.G– goes to the final line of the file.
e– go to the end of the current word.E– go to the end of the current WORD.b– go to the previous (before) word.B– go to the previous (before) WORD.w– go to the next word.W– go to the next WORD.
{– Go to the beginning of the current paragraph. By pressing { again and again move to the previous paragraph beginnings.}– Go to the end of the current paragraph. By pressing } again and again move to the next paragraph end, and again.
References:
ctr + B "to split horizontally.ctr + B %to split vertically.
:source ~/.vimrc
:NERDTreeFindto switch to the NERDTree and find the file of the current buffer.:NERDTreeto open a new NERDTree.Pto jump to the NERDTree root,cdto change CWD to the NERDTree root.:Bookmark <name>to create a bookmark at the current directory:ClearBookmark <name>to delete a bookmark
Shift + $to go to the last character of the line.Shift + ^to go to the first character of the line.:bufdo <command>to perform a command on all quick fix buffers.- Use
:cfdo <command>to run a command on all quick fix files. - We can pipe commands while using
:cfdotoo, for example::cfdo %s/pattern/replacement/g|w - Use
:cwto open quick fix buffer.
:Filesto open the search terminal for files (Start at the directory of CWD).- In
:Filessearch terminal, useTabto add files to quick fix andEnterto open quick fix window.
- To quickly replace all similar appearances of a sentence in a file.
- Select the sentence using Visual Mode.
Ctrl + Nwill find all of the sentence appearances.Nto select all appearances.dto delete all appearances.ito start typing at every places you have deleted the sentence.ESCto escape from the insert mode.