Home  >  Article  >  Backend Development  >  Some practical uses of Vim_PHP tutorial

Some practical uses of Vim_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:13:15910browse

1. When vim has not started yet:
Input
vim file1 file2 ... filen in the terminal to open all the files you want to open.
2.vim has been started
Enter
:open file
to open another file , and the contents of the file file will be displayed in vim at this time.

Display multiple files simultaneously:
:split
:vsplit

Switch between files:
1. Switch between files
Ctrl+6—Next file
:bn—next file
:bp—previous file
For (v)split in multiple panes Files opened in this method will only switch between different files in the current pane.
2. How to switch between panes
Ctrl+w+arrow keys - switch to the previous/bottom/upper/next pane
Ctrl+w+h/j/k/l - Same as above
Ctrl+ww - Switch back to the next pane in sequence

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440377.htmlTechArticle1. When vim has not started: Enter vim file1 file2 ... filen in the terminal to open all The file you want to open 2.vim has been started. Enter: open file. You can open another file...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn