Occupy position, to be perfected.Vim Editor:Full-screen editor: VIMVi:visual interfaceSed: line EditorVI, VI improvedVim:Pattern:Edit mode: Command modeInput mode:Last-line mode:Edit mode--Input mode:I:insert,A:append,O:new Line,I: The beginning of
Morning: Redirect:Tadafa (| character) can connect commands ll–l/etc/| Less Vim Advanced text editor vim introduction650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px;
Full-screen editor: VIMVi:visual interfaceVI, VI improvedVim:Pattern:Edit mode: Command modeInput mode:Last-line mode:Edit mode--Input mode:I:insert,A:append,O:new Line,I: The beginning of the lineA: End of lineO: Above New CCBInput mode--edit
1 , how to change the automatically indented characters from the default eight to four: Set tabstop=42 , copy the/etc/grub2.cfg configuration file to the/tmp directory, and use the Find and replace command to delete the beginning blank character in
CTRL + V into visual mode
Move the cursor up or down, Select the beginning of multiple lines
When you are finished, press the I key in the upper case, and you will be prompted to enter the "Insert" mode below , entering the annotation you want
1. The system only installs the Vim-minimal, and executes the following command to install the other two componentsYum Install vim-commonyuminstall vim-enhanced2. Installing CtagsYum Install CtagsDownload linux-2.6.32.27 kernel source and extract to
The four modes of VIM technique _ Insert Mode
Correcting errors in insert mode in a timely manner
Insert-Normal mode
Paste the contents of the specified register directly under Insert mode mode
Doing operations in insert mode
1. Location of configuration FilesUnder directory/etc/, there is a file named VIMRC, which is a public vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private configuration file, named:
Command mode, enter the command:: Set number Displays line numbers: Set Cindent is indented in C language syntax: Set autoindent adds the same indentation as the current row for the new row: Some improvements to set smartcindent autoindentGGVG
s) The movement of the cursorH Cursor moves to the beginning of the top line of the screenM Cursor moves to the beginning of the middle line of the screenL Cursor moves to the end of the last line of the screen0 cursor moves to the beginning of the
Article reference: Http://vim.wikia.com/wiki/In_line_copy_and_paste_to_system_clipboard.Add the following to the. VIMRC under ~/."On Osxvmap y:call system (" Pbcopy ", Getreg (" \ ")) nmap : Call SetReg (" \ "", System (" Pbpaste ")) p' On Ubuntu '
The VIM input command zz can redraw the screen so that the current line is in the middle of the screen.Paste in insert modeyt,The command is copied from the current character to the character, and then the j command moves to the next line, the A
1, Vim ~/.VIMRC Enter the configuration fileIf you don't know where the VIMRC file is, you can use the: Scriptnames to viewSet Nu #行号Set tabstop=4 #一个tab为4个空格长度Set AI #设置自动缩进Syntax on #高亮2. BasicSPACEBAR to move one cell to the rightX Delete the
IntroductionA year ago also learned vim for some time, but after all, still did not cross the threshold of beginners. I found myself in a lot of situations are like this, not without serious study, but in the end did not stick down. Sometimes, I
Notes on playing vim-It's been more than a week since the last blog post, and I've been working on the origins of the editor's Vim, installing and introducing two modes and some simple operations. The use of VIM will continue to be introduced in
Perform arithmetic on the replacementSuppose we have a document like thisWe want to promote each heading, turning into , into , and so onWe're going to turn every heading, for example , to a 1 reduction in numbers.Here's the general Idea:we
Vim tips for useInstall, find packages[email protected] ~]# which VI/bin/vi[Email protected] ~]# Rpm-qf/bin/viVim-minimal-7.2.411-1.6.el6.x86_64[Email protected] ~]# RPM-QF ' which VI 'Vim-minimal-7.2.411-1.6.el6.x86_64[Email protected] ~]# RPM-QF '
Major premise: Install git: sudo apt-get install Git-core , because many of the following are available on GitHub.In addition, unreasonable point of view (concrete principle such as the small have not seen >.
1. Terminal using solarized color
VI Three modes of explanationCommand-line mode (commands mode/general mode)At any time, no matter what mode the user is in, just click the "ESC" key, you can get VI into the command line mode; We enter the Launch VI command under the shell
Download Vim's Windows version: Ftp://ftp.vim.org/pub/vim/pc/gvim74.exeAfter installing Ctags:http://files.cnblogs.com/files/jiahu-blog/ctags58.zip decompression, copy the Ctags.exe file under the folder to the same folder as Gvim.Installing Taglist:
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