Vi:o in next line edit modeA is behind the editor ==>endThe beginning of the GG fileShift + G End of File$ File Line End^ File line beginning ==> 0 also to line beginningU fallback/Search from front to back? Search forward from behindN Next go downN
Operation in command modeReplacement characters:%s/str1/str2/gDelete all content:%dDo not save exit:Q!Save exit:wq!Execute shell command:!command such as!ls-lInsert the shell command execution result on the next line:R!command such as R!dateSpecify
By default the VIM plugin is installed to put all the plugins and related doc files in a folder, such as the $vim/vim/vim74/plugin and $vim/vim/vim74/doc directories, and the consequence is that the modification and uninstallation are cumbersome, It
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
ESC: Command-line modeI: Insert command a: Additional command o: Open command C: Modify command r: Replace command s: Replace command above enter text input mode: Enter the last line modelast-line mode:W: Save Q: Exit, no save can not exit Wq: Save
Liunx basic 1, directory? /: root directory, generic root directory only, there is only one root directory under Linux. Everything starts here, for example:/home is first from the root directory/start, and then into the House directory.
(iv) General mode common operation"H (or left ARROW key)" Cursor moves left one character"J (or DOWN arrow)" Cursor moves down one character"K (or Up ARROW key)" Moves the cursor up one character"L (or right ARROW key)" Cursor moves right one
"set to automatically load when files are changedSetAutoread"line number on the leftSetNu"tab length is 4Settabstop=4 "do not back up when overwriting filesSetNobackup"Auto IndentSetsmartindent"Highlight Current Line"Set Cursorline"lower right
About VIMVi:visual Interface, Text editorText: ASCII, UnicodeType of text editing:Line Editor: SEDFull Screen Editor: Nano, VIVim-vi improvedOther editors:Gedit a simple graphical editorGvim a graphical version of the VIM editorOpen file: # vim
Vim Tree Menu Plug-in installation Nerdtree1. mkdir ~/.vimCD ~/.vimmkdir Bundlemkdir AutoLoad2. Curl-sso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/ Pathogen.vim3.vim ~/.VIMRCAdd this
A good tutorial on the story:nohCancel Search highlightingxDeletes the character of the current cursor.:wqDisk + exitddDelete the current row and save the deleted row to the ClipboardpPaste Clipboarda→ inserted after the cursor/pattern→ searches for
Introduction to Vim
Yum install-y vim-enhanced installation package
Vim is an upgraded version of VI
Vim is color-displayed
Sub-general mode, edit mode, command mode
Vim color display and move cursor in general mode
The same
1. Copy the specified line to the next line of the current cursor.#假设当前光标在10行, want to copy line 5th to line 11th: 5copy. #copy命令有2种简写 ' Co ' and 't', so you can also write the following format: 5co.:5t.Reference: http://liuzhijun.iteye.com/category/
Type command 1. Command format:Type [parameters] [command]2. Command function:Use the type command to easily find out whether a given command is an alias, a shell built-in command, a file, a function, or a keyword. You can also find the actual path
1, display line number: Setnumber2, cancel the line number; Setnonumber3, in normal mode (press ESC to enter) The key v into the visual mode, and then press the keyboard or h,l key to achieve the text selection.Other Related commands:V: Select by
Extended mode: R file absolute Path # writes file contents to the next line of the current cursor W filename # writes the current contents of the current VIM open to the filename (new file filename, writes the content) w! FILE1 # Forces the current
I used to use putty with Unix server to open screen, and then use Vim to write Python. This recording improves the color of Python.Activating 256-Color terminalFirst, increase the available color to 256 colors, make sure Putty is the new version
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