VIM Command Summary (continuous update)

Source: Internet
Author: User

Work for three years, has been in the semi-command line, the state of the semi-IDE, slowly summed up part, easy to use later.

"Basic" 1. tab

Open a file in a new tab

:tabedit  filename

Vim has added multi-tab switching functionality from VIM7, which is equivalent to multiple windows.

:tabnew 打开新的tab(Ctrl+N新建标签页,Ctrl+T:tabclose 关闭当前的tab(Ctrl+W:tabonly 关闭所有其他的tab(Ctrl+Shift+W:tabprev 前一个(Ctrl+Shift+Tab):tabnext 后一个(Ctrl+Tab)

Standard mode:

gt 、gT 可以直接在tab之间切换。
2. Delete a word
dw
3. Cursor movement
10j   向下移动10行10k  向上移动10行
4. Split screen 4.1 create split screen
:vs  文件路径/文件名      在新的垂直分屏中打开文件:sv  文件路径/文件名      在新的水平分屏中打开文件:new,新建文件并分屏, 快捷键,Ctrl+W,然后马上按n键:spilt 水平分屏,将当前屏分为两个,水平的。   Ctrl + w, s:vsplit 垂直分屏,将当前屏分为两个,垂直的。  Ctrl + w, v:only 取消分屏,取消当前的屏,当前屏指的是光标所在屏
4.2 Moving the cursor
iCtrl + w, kCtrl + w, l
4.3 Turn off split screen
Ctrl+w,c    关闭当前屏Ctrl + w, o 关闭其他窗口

VIM Command Summary (continuous update)

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.