Some basic commands for VIM

Source: Internet
Author: User
  • Use of Vim
    1 command mode, edit mode, last line mode, command mode is the broker of edit mode and last line mode.
  • Vim Common commands
  • I: Enter edit mode
  • YY: Copy cursor row copy multiple lines: Digital +yy
  • P: Paste, paste multiple times: digital +p
  • DD (delete, cut), cut or delete multiple lines: Digital +DD
  • V: Select multiple rows
  • Up and down: K: Up, J: down, L: Right, H: Left equals direction key
  • x: Delete a letter from the past
  • X: Remove a letter from the back and forth
  • U: Undo
  • SHIFT +;: Indent right
  • Shift + <: Indent left
  • .: Repeat Last Action
  • G: Back to the last line
  • GG: Back to the first line 1G
  • 18G: Return to the specified line
  • SHIFT + 4: Back to the end of the line
  • SHIFT + 6: Back to the beginning of the line
  • Search::/1 N: See what's Next, N: See what you found in the previous search
  • Replacement::%s/1/2/g%: Entire file, S: Replace G: Global
  • Ctr+f: Next Page
  • Ctr+b: Prev
  • : Wq,: x: Save exit
  • Some basic commands for VIM

    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.