Vim Wangyunpeng.txt Create a wangyunpeng.txt fileEnter "I" into insert modeDisplay line number, you need to enter ": Se nu" in command modeCp/etc/services/tmp/services Copy the Services file under the ETC directory to the TMP directory name is also
Vim Introduction: An editor, in addition to the general Linux system will be brought, so the general Linux under the log, configuration files, etc.Modification and editing of plain text files, etc. via VIM operationBenefits of Learning: 1 easy to
Reference:
http://blog.csdn.net/love__coder/article/details/6739670
http://blog.csdn.net/love__coder/article/details/7217377
Intercept to generate a new file or append to an existing file::up to aw!./new.txt #将第21 ~42
Enter VIMIf you want to open or create a new file/home/eagle/main.cpp, enter the statement:
Vim/home/eagle/main.cpp
Move cursor
Key
function
0/home
Move to the beginning of the line
Work needs to use VIM for a long time, has been stupid with the mouse point, a good way, today on the Internet to write the basic use of VIM command, for later query use:Switch to Input mode:
Key
Function
I
Next page: Page Down
Up one page: Page up
To the beginning of the line: Home
To end of line: End
Move to the end of the file: G
Move to file header: GG
The cursor moves down n rows: N
Insert a new line below: O
Next page: Page Down
Up one page: Page up
To the beginning of the line: Home
To end of line: End
Move to the end of the file: G
Move to file header: GG
The cursor moves down n rows: N
Search down Word string:/word
recently looking at an open source project, I suddenly discovered that there is no convenient tool to look at the open source code on Linux. Previously, with VS2010 integrated development Environment on Windows, shortcut keys for any function
Reference: http://wdicc.com/search-in-vim/1, simple substitution expressionThe Replace command can replace another word with one word in the full text::%s/four/4/g----Replace four with 4The "%" range prefix indicates that substitutions are performed
The configuration file for vim in Ubuntu is stored in the/etc/vim directory with the configuration file named VIMRC
Show line Numbers
Syntax highlighting
Auto Indent
Show commands in text
Show nearest brace match
Smart Match
Smart
The console version of Vim is released with Ubuntu, so there is no need to install it. However, if you prefer vim under the GUI interface, please install the VIM-GTK package from the new installation or enter it in the terminal: sudo apt-get install
ObjectiveHave always been to Linux and vim, in fact, Windows is also very good, because there are some situations in the work can only use Windows to develop, including some APIs or SDK are only Windows version, just use Linux when the feeling and
Installation of the VIM editorVI (VIM) is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if used flexibly it will greatly improve efficiency. This article explains
1. Window segmentation": Split": Split the cursor window into two windows to display, continuous execution will split out multiple windows"Ctrl+w W": Jumps to the next window, loops the jump"Ctrl+w direction (or h,j,k,l)": Jumps to the next window
1. Edit another file": Write Edit Foo.txt": Save changes to the current file and open ' Foo.txt '": edit! Foo.txt ": Discard changes to the current file and open ' Foo.txt '": Hide Edit Foo.txt": Temporarily do not save the current file, and open '
1. Start diffThere are many ways to turn on diff in Vim, and here are a few common scenarios.1.1 External directly open two files# Direct use of Vimdiff instructionsVimdiff file_1 file_2-D file_1 file_21.2 File comparison after opening a file-on
We can refer to custom templates when using Vim to create new files to avoid repetitive data format processing that takes too much time.The implementation method is simple and requires only 2 steps:1. In the. Vim/template directory, put your own
Vim highlights the syntax structure of the nginx configuration file, vimng.pdf
Vim highlight the syntax structure of the nginx configuration file
1. Download the vi syntax highlight configuration file ~ /. Vim/syntax
Note: This directory is
Vi and vim Editor (13): Overview of Functions of similar vi products, vivim
This chapter describes the functions provided by similar products of vi.
They are all my brothers:
There are many similar products of the vi editor that can be freely
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.