First Lecture: Vim's configurationAfter the installation of CentOS, it is installed by default VI editor, VIM is not installed, so we use Vim test.txt when prompted: Vim command not found ... This is to say that our Linux environment does not have
Because of my personal preference, I like to set the background color to dark when I use VIM.But each time you open a vim to reset it, it feels very troublesome.Always enter [ESC]: Set Bg=dark is inconvenientThe rough way is to go directly to
First confirm that in normal mode, if you do not confirm, press ESC several times.: Sy on/clearSY indicates syntax highlighting, on is open, clear is canceled.: Set go=Set represents the general setting, go is the abbreviation of GUI option, is the
One, view hard disk or directory capacity1.DF [-hmkit]-H View System disk usage-M using MBytes to display results-K displaying results using Kbytes-I view Inode-T view type2.du [-abhkms] [directory name]-S only lists the total value of the last
One, insert commandI inserted at the current positionI Insert at the beginning of the currentA is inserted after the current positionA inserts at the end of the current lineo Insert a row after the current lineO insert a row before the current
1. Use of VIVI min Three modes:
General mode
This mode allows you to Delete, copy, paste, and search for replacements , but you cannot edit the content.
Edit mode
Press the ESC key to exit this mode by entering any one of
Vi/vim Basic Use MethodThis article describes the basic use of VI (VIM), but for the average user is basically enough! I/vim the difference is simple, they are multi-mode editor, the difference is that Vim is the upgrade version of VI, it is not
Previously working in VIM requires copying things between vim and other editors, using Shift + Ctrl + v/c. Feel this is inconvenient, today in the online search for the following can be used "+y/p, but their own experiment how also do not, in
Vim's split-screen functionSumming up, basically are ctrl+w then add a key letter, triggering a function.(1) Open several files in the shell and split the screen:vim-on file1 file2 ...vim-on file1 file2 ...Large O for Vertical division (vertical),
1. Vim IntroductionVim (Visual Interface improved) is an exceptionally powerful text editor, if everyone's understanding of it is still in the editing of files, and then quit the stage, it is too sorry for vim, but instead of using the nano to the
: s/str1/str2/replaces the current line the first str1 is str2: S/str1/str2/g replaces the current line with all str1 as str2 (note that the S/XX/XXX/G statement starts with S and the middle space is treated as part of the string): N,n2
x Delete the characters under the current cursorDW Deletes the remainder of the word after the cursor.d$ the remaining portion of the line after the cursor is deleted.DD deletes the current line. the C function is the
1. Copy the/etc/rc.d/rc.sysinit file only in the/tmp directory, and add # at the beginning of the/tmp/rc.sysinit file with at least one whitespace character.# Vim Rc.sysinitIn the last line mode of vim, enter:%[email
Linux read the source code a lot of ways, smart people from the title should be able to know, need (g) vim+taglist+ctags. 3 cooperation, is a perfect match, the skill unlimited Ah!Vim/gvimWhat is Vim/gvim, if crossing even VI do not know, then don't
Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI. Vim is purely free software.So a well-configured vim will certainly be more handy to use.650) this.width=650;
VI and VIMThe VI Editor is the standard editor for all UNIX and Linux systems, and he is the equivalent of a notepad in the Windows system, which is no less powerful than any of the latest text editors. He is a tool we cannot use without a Linux
1. Find command:basic format: Find path option parameter-name: Search by file name-size: Search by File size + (bigger than this)-(smaller than this)-type: Find by file type-normal file-D directory-L link file-C character device file-B block device
ObjectiveSee this article today, resonance very much. It divides vim into 4 levels, and at present I am proficient in using the previous level Three command, in the cultivation habits of the fourth level. It's exactly the process I've been using vim
The first time to open a blog, here just record their own on the road of technical learning experience, and the most important thing is to exchange experience with you.Specific hand can refer to the URL( 1 ) http://www.cnblogs.com/ma6174/archive/2011
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.