. vimrc file
We have already learned that the configuration file for vim is VIMRC file and that the VIMRC file is divided into system VIMRC file and user vimrc file . Under normal circumstances, we do not make the system VIMRC file
On the command line: H command and character to view the meaning of the command and characterFirst, mobileIn normal mode1.1. Moving and insertingH move one column to the leftL Move Right one columnJ Move down one columnK Move up one columnG the last
Replace command format
• Command Format: [Replace-range] s/replace-pattern/replace-string/ [c,e,g,i]• Command Description text replace range , in general form, is [M,n] , which indicates that the text between rows of M
I believe that farmers hear two artifact codes, first Emacs, first vim. Everyone knows that e party and V party always quarrel. Unexpectedly, this does not help the noisy. Just everyone has their own reason also applies. Contact with Vim while
introducing the next Wim,Vim is a well -known, powerful, highly customizable text editor similar to VI, which improves and adds a lot of features on the basis of VI. VIM is purely free software. Vim is generally respected as the best of the class Vi
Vim is a well-known, powerful, highly customizable full-screen text editor similar to VI.Usage: VIM [parameters] [file:] Edit the specified fileOr: Vim [parameters]-read text from standard input (stdin)Or: Vim [parameter]-T tag edit file at tag
Vim Editor:;Full-screen editor: Vim:vi Improved (vi enhanced version)Vi:visual interfaceVim: Just text full screen editorPattern:Edit mode: Also called command mode to copy the text, delete and so onInput mode: That is, enter content into the
In command mode, the first execution of GGThis jumps to the first line of the file.Re-execution: DGThis clears the entire file!There is also a way to exit vim and then use echo >> file to quickly clear the contents of the file, but you can also
^ Represents the beginning of a line, and $ represents the end of a row. GG document header, G document footer.Here is the basic command for VIM copy and paste:yy duplicates the row where the cursor is located. or uppercase one Y.2yy or y2y copy two
Vim Basic editing commandsThere are three basic modes of 1.vim:Edit mode (command mode), input mode, last line mode2. Three modes of conversion:Edit mode--Input modeI:insert, enter at the cursor positionA:append, enter after cursor locationO: Opens
1. Download Nginx.vimDownload page: http://www.vim.org/scripts/script.php?script_id=1886wget Http://www.vim.org/scripts/download_script.php?src_id=14376-O Nginx.vim2, Installation Nginx.vimPlace the Nginx.vim in the ~/.vim/syntax/directory,3,
Vim EditorVim is a very useful text editor for LinuxThere are three basic modes of VIM: Edit mode, command mode and last line modeThe following sections describe the operation of each of the three modesFirst, we introduce the conversion methods of
Have a certain VIM basis can read this article, can quickly query common commands.Use VIM to install the following three packagesvim-minimal only provides VI and related commandsvim-enhanced provides VIM commandsvim-x11 offers GvimVIM has three
Sometimes the default Vim environment is not suitable for your requirements, and we can adapt to our needs by modifying Vim settings such as fonts, colors, auto-indentation, and so on.The usual setup parameters are as follows:: Set Nu: Set Nonu sets
1. Create a new. vimrc file.2. Add content to the file.Set tabstop=4 set softtabstop=4 set shiftwidth=4 set Noexpandtab set Nu 3.TabStop: Indicates the length of the number of spaces that a tab displays, by default it is 8.Softtabstop: Indicates
First, install VIM.1. No network conditionsMount CD to MNT under Mount/dev/mount/mntThen use the RPM command to install the rpm-ivh/mnt/packages/vim-common-7.2.411-1.8.el6.i686.rpm/mnt/packages/ vim-enhanced-7.2.411-1.8.el6.i686.rpm2. Network
Move HJKL ctrl+udbf f+ character: Moves backward to the specified character f+ character: Moves forward to the specified character Example: FG moves to letter G 0dfH: Delete From the beginning of the line to the first H Move in Word W Move head
Start using Vim (i) vim被称为是编辑器之神,如果可以学好vim的话,就可以在键盘上 “健指如飞” 了,可以完全摆脱鼠标来进行文本的定位编辑。 当然,vim还可以进行各种配置,装上各种插件,做成 IDE ,会有很炫酷的感觉,而且做为 伟大 的软件工程师,能在键盘上 刷刷刷地,灵活地超控自己的代码也是一种非常值得 自豪的事,所以,我觉得,掌握 vim 是做为一个计算机方向专业的人的基础课程,很有必要去接触一下 vim 这个“编辑器之神”。
Linux system directory/usr/share/vim/vim74/autoload The following are some of the plugins that are available after Vim is installed, if you need to enable these plugins to be configured in ~/.VIMRC, such as: Configure the Python plugin to be enabled,
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.