one or one-like mode: Delete, copy and paste Class command
X,x x to delete one character backwards, X to delete a character previously
NX (n represents number) Delete n characters backwards
DD Delete when forward
D Delete all characters in the
First in the terminal input VIM test.c Enter the VIM editor, click a key, enter the editing state, and then enter the following C language statement: #include
int main () {printf ("Hello world!/n");} To do this, press ESC to exit the edit state,
Vim combines regular expressions to achieve complex functions, such asCommon find substitution%s/matching strings/replacement strings in vim/gIf you want to match only the number of strings:%s/string/&/gnN, which represents only the number of
About VIVI 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, replace, block operations, and so on, and users can customize them according
Last-line mode focuses on (this is the basis for learning the SED)1) Address delimitation: Start_pos[,end_pos]#: Specific # lines, e.g. 5 for line fifth.: When moving forward$: Last line#,#: Specifies the row range, the left is the start row#,#+:
unconsciously a week of time is over, feeling unprecedented enrichment! This week learning the Vim editor is said to be important! One. Open File★vim +n filename After opening the file, leave the cursor at the beginning of line N, + the default tail
Turn from:http://blog.csdn.net/love__coder/article/details/66591031, install Nerdtree plug-inDownload First, official website: http://www.vim.org/scripts/script.php?script_id=1658 After decompression, copy the Plugin/nerd_tree.vim and Doc/nerd_tree.
1. Vim Editor1.1 Vim BasicsVIM has two modes: normal mode, insert mode and last line mode, normal mode can use command, insert mode for editing text use, last line mode for command lineInput I will enter insert mode at the cursor, press ESC to exit
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
Vim EditorText editor, word processorAsciiNano, SEDVi:visual InterfaceVim:vi improvedFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current
1, install Nerdtree plug-inDownload First, official website: http://www.vim.org/scripts/script.php?script_id=1658After decompression, copy the Plugin/nerd_tree.vim and Doc/nerd_tree.txt to the ~/.vim/plugin and ~/.vim/doc directories respectively.2,
The problem encountered today, vim edit a file when the Chinese display garbled, but cat view this file is normal, the workaround is as follows.Use the following command to edit the configuration file for vim.Vi/etc/vim/vimrcThen, hold down the
This article mainly teaches you how to use the Vim split screen function.Split screen start vim
Use the uppercase O parameter to split the screen vertically.vim -On file1 file2 ...
Use the lowercase o parameter to split the screen
Sometimes you copy and paste code from the editor into Vim, and the code format is completely messed up. The reason for this is that vim turns on smartindent (smart reduction) or autoindent (auto align) mode. In order to maintain the format of the
1. Introduction of VIbasically , VI is divided into three modes:Command mode Open a file with VI directly into the command mode. In this mode, you can use [up or down ] keys to move the cursor, delete characters to process the contents of the file,
There are two ways to set the VIM editing environment configuration:1, is set in/ETC/VIMRC, this setting method will function with all users logged into the Linux environment. It is not recommended.2, create a. vimrc file in the ~ directory where
Pydiction can be we use the TAB key to automatically complement the Python code in Vim, is a very good plugin.Download pydictionmkdir ~/.VIMMKIDR ~/.VIM/TOOLSCD ~/.vim/tools# can be downloaded first and put into the Ubuntu system git clone
First step: Install Git and configure CurlNot much to say, Vundle is based on the GIT architecture, so, which is a must.Download Msysgit and install it (see Http://drupalchina.cn/content/windows-xi-tong-xia-gitan-zhuang-tu-jie) and Git The cmd path
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