Why use VIM? Originally use sublime to do foreground development, but with want to learn node, side to use command station, side to switch back, in Mac Ben really not so convenient. So start learning vim. For a brief introduction, the Congo enters vim without any pattern, which is independent of the output mode I, and is independent of the command mode: a mode other than. This pattern is our main mode of learning. None---I----these three modes are quickly switched through ESC. When I click on the keyboard, you can only input, and the normal editor is no different. In I mode, by clicking ESC, you can jump out of this mode, and then into the None (I named) mode, this is our main internal strength, all the input characters are suspected of the shortcut key! For the entire screen: up and Down H J K L, the front can be added N, repeat operations such as 3h Delete characters: x one character, DD line character, J Delete line break undo redo: U will undo the operation, Ctrl-r can undo u undo operation. Other commands: A can be at the next character of a selected character. O You can start a new line on the next line and automatically enter the I mode. Save and launch: ZZ Move: Word movement: w, next word-word-first, B-word-first. E, the next word ending, ge on a word ending. Beginning of line, end of row: $ line at end, ^ beginning, F moves to the specified character. Brackets match:% can be matched in parentheses. Move: GG: Beginning of line. G Line end. Supports digital NG positioning lines. H: Line beginning, M: line, L: End of row. Scroll screen: ctrl-f up one screen, ctrl-b down one screen. Ctrl-u Move up half-screen, ctrl-d Move down half screen. CTRL-E move one screen up and ctrl-y down one screen. ZZ: middle of screen, ZT: Top of screen, ZB: bottom of screen. Find::/Down Find,:? Look up, next n regular match: ^ Pre match, $ after match. Three characters match. * Select text characters.
Vim Learning Summary