Vim Learning Summary

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.