Using the VSP command:
For example: There are files under a folder:
The code is as follows:
vector.cc, substr.cc
1. Open any file using the VIM command: Vim vector.cc open the first file. As shown in the following illustration:
2. Press: "ESC" key +
Setting Commands is simple
The code is as follows
Copy Code
echo "Export Editor=/usr/bin/vim" >>.BASHRC
Then reopen the terminal, input crontab-e, found that the default vim has been used.
Linux under the VIM
Puppet PP profile has not been vim support, edit the black background white, not easy to row wrong, it seems difficult to distinguish, need to make further changes to perfect display
You must add 2 files to the. Vim in the user's root directory, as
Command historyCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.Start vimEnter the following command in the Command line windowVim starts vim directlyVim filename opens vim
Refer to the essays from MaowangCut (delete):Clipping actually removes the selected content, so it can be used when the cut command is used, or when the delete command.First, you can enter the free selection mode in command mode, select the text you
Vim editor ASCII Vi:vim: fullscreen, patterned vim mode: Edit mode (Command mode) input mode last line mode mode conversion: edit--Inputi,a,o (o: Create a new row below the current cursor line and switch to input mode)I,a,o (line at beginning, end,
The first thing to do is to set the automatic indentation before you set the parentheses automatically, by adding the following statement to the ~/.VIMRC file:set Autoindentset shiftwidth=4set TabStop=4set Expandtabset smarttabThe parentheses in the
How to quickly comment block codes under vimAdd a block comment01. Enter View modev Enter view mode, control direction key check Comment code02. Enter the column mode and insert #Ctrl + V into the column,I Insert Comment #03. All CommentsESC two
How to implement batch annotations with VIMMethod Piece Selection ModeBulk Comment:Ctrl + V into block selection mode, then move the cursor to select the line you want to comment, and then press the uppercase I into the beginning of the insertion
Vim sublimation Tree Catalog plugin nerdtree installation diagramInadvertently see the lab's friends using the VIM can be displayed on the left tree-shaped table of contents, feel very convenient, this looks like folders have what files at a glance.
1. Select a text block. Using V to enter the visual mode, move the cursor key selection. 2. The command to copy is Y, which is yank (lifted), and the commonly used commands are as follows: Y Copies the selected block to the buffer when a piece is
Text editor Vim:Vim/vi is a powerful full-screen text editor that is the most commonly used text editor on Linux/unix. Its role is to create, edit, display text files.Vim/vi no menus, only commands.Insert Command
Command
Role
Enter VIVI filename Opens or creates a new file and places the cursor at the beginning of the firstVI +n filename Opens the file and places the cursor at the beginning of nthVI + filename Opens the file and places the cursor at the beginning of the
VimI: InsertI: Insertion at the beginning of the lineA: Insert after cursorA: End of line insertionO: Next line InsertO: Previous Row insertX: Delete one character afterX: Delete the previous characterU: UndoU: Undo All actionsShift+d: Deletes all
Original URL: http://www.blogjava.net/woxingwosu/archive/2007/09/06/125193.htmlVI is the abbreviation of "Visual interface", its status on Linux as if the edit program on DOS. It can perform many text operations, such as output, delete, find,
Transferred from: http://my.oschina.net/u/554995/blog/59927Recently, ready to go with seniors to the Linux kernel door to see the inside of the world, although we know the door is there, but we have to find the right angle to see more comfortable,
Content of this week's job:1. Copy the/etc/rc.d/rc.sysinit file to the/tmp directory and add the line beginning with at least one white-space character in the/tmp/rc.sysinit file #:%[email protected]^[[:space:]]\[email Protected]#&@g384
Configure the VIM environment with one click with a profile written by a master on GitHub-------------------------------------------------------------------------------------Introduction See this blog: http://www.cnblogs.com/ma6174/archive/2011/12/10
Talk Vim together (16th back: ctags of Vim plug-in), vimctags
Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. We introduced the ctags in the Vim plug-in last time.
In this case, let's continue with the plug-in. Or
Download vim and vimVim
Vim-related knowledge is accumulated and is continuously updated.Common Key Mode
n1,n2s/word1/word2/gSearch for word1 between line n1 and line n2 and replace it with word2.
1,$s/word1/word2/gSearch for word1 from the first
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