Command mode -> First mode when open every file with vim i -> Insert mode ctrl + c , Esc -> For exit from current mode x, X -> For delete current char : (last-line mode) -> (:w :q :wq :ter) -> Last-line mode for run some command like write or quite file a -> Append the cursor to the next character and go to insert mode A -> Got to end of the line and run mode insert I -> Got to first of the line and run mode insert $ -> Just go to end of the line ^ -> Just go to first of the line o,O -> Open a new line bottom/top the current line u -> Undo last change ctrl + r -> Redo last undo d -> (dw, dd, de, d0, D) -> Delete mode w -> Scroll sentence by word b -> Scroll sentence by word to word in reverse 4command -> (5x, 5dd, 5w) -> Combine numbers with different commands yy -> Yanke(save to buffer) current line p -> Paste info from buffer one line bottom the current line P -> Paste info from buffer one line top the current line J -> Join the bottom line to the current line v -> Visual mode V -> Visual current line % -> Jump from one sign to another for example [ to ] or from ( to ) also for {} gg -> Go to the first line of the file G -> Go to the last line of the file 4G -> Go to the four line of the file {,} -> Scroll the page paragraph by paragraph -> { (paragraph top) and -> } (paragraph bottom) r -> Replace one char with another char R -> Replace mode /search_text -> Search text :s/foo/bar/g -> Replace the value of bar instead of the foo in the current line :%s/foo/bar/g -> Replace the value of bar instead of the foo in all file lines :5,15s/foo/bar/g -> Replace value bar instead of value foo for lins between 5 and 15 n -> Go to the next value found N -> Go to the previous value found h,j,k,l -> To navigate lines and characters ctrl + wv -> Open a new split vertically ctrl + ws -> Open a new split horizontally ctrl + ww -> Jump to the next vertical split ctrl + wl -> Jump to the right split ctrl + wh -> Jump to the left split ctrl + wk -> Jump to the bottom split ctrl + wj -> Jump to the top split