Alibabacloud.com offers a wide variety of articles about difference between vi and vim, easily find your difference between vi and vim information here online.
it in normal mode::nohighlight" 等效于:nohlIn fact, the above command disables all highlighting, only the command to disable the search highlighting is :set nohlsearch . The next time you search, you need to :set hlsearch start the search highlighting again.Delay disableHow to let vim find/replace after a period of time automatically cancel highlighting, the occurrence of the search automatically open it? "Disable highlighting autocmd Cursorhold * set
] stores the edited data as another file (similar to a new file)
: R [FileName] in the edited data, read into the data of another file. The file "filename" will be added to the cursor row after the
: n1,n2 w [filename] stores the contents of N1 to N2 as the filename file.
:! Command temporarily leaves VI to command line mode to perform command display results! For example
『:! Ls/home "You can see in VI
Linux under Vi/vim use notesStart and close vimVI OpenVi/vimOpen Vi/vim and load file VI ZQ Unconditional Exit: q! Unconditional exitZZ Disk and exit: Wq Disk and exitThree modes of the VIM Editor: General mode, edit mode, and com
Tags: partial file pattern Directory multiple Pre method window selectedOne, VIM: is the enhanced version of VI, Visual Interface improved, it is full screen editor, modal editor, text version processing tool.Vim Editor four modes: Edit mode (command line mode), input mode, last line mode, visual mode.Second, vim open file, such as:
VI is a command-line interface under the text Editing tool, Vim is an enhanced version of VI.
Vim or VI commands can start the VIM editorVim + Destination file path Open file with vimIf the destination file exists,
1, VI VIM have two modes of operation:(1) Command mode: Accept, execute VI VIM Operation command mode, the default mode after opening the file;(2) Editing mode: The mode of adding, deleting and changing the contents of open files;#在编辑模式下按下 the ESC key, fallback to command mode.2. Create and Open file: $
Http://www.cnblogs.com/penseur/archive/2011/02/25/1964522.htmlNeedless to say, in the vim of the expression has been very widely used. In the most commonly used /and: S commands , regular expressions are essential. The following is a description of some of the difficulties of regular expressions in vim.About MagicThere is a magic setting in Vim. The setting method is:: Set Magic "Settings Magic:set nomagic"
Take the Tomcat profile Service.xml as an example to record and learn the most common operations of VI.> What is VI or vim?Mans VI VIM (1) VIM (1) NAME -
read-only: w filename Save As: n1,n2 w filename Saves the contents of N1 to N2 as a filename file: Set NU: Show serial numberSet Nonu: No serial number displayed: Q: Exit VI: q! : If you modify the file and do not want to save it, you can force the exit: Wq: Exit after saving: wq! : Quit after forcing save to save to the current user's permissions to the file: x: Save and exit: R filename: reads the data from another file into the line behind the cur
Linux environment Editor has VI, Vim, gedit, after entering these editors, display the current line number
Manual display: Input in vim or vI command line mode : Set nu
Cancel display: Input in vim command line mode : Set Nonu
permanent display: Modify a con
When you use Vi/vim in Ubuntu, you find that you cannot use the system's clipboard.On the Internet a check, the original is less loaded a few things.Use the following command to install the associated package. Once the installation is successful, you can use the system Clipboard.sudo Install vim vim-scripts
1. TopicsOld boy Education daily-2017-05-15-talk about the commands or shortcuts you use in Vi/vim2. Reference to answer 01: Learn to search for help in Vim: Help or: H: Help G:HELP:WQ02.vi/vim using the most basic method
First milestone-Open oldboy.txt with VIVi/data/oldboy.txtThe default is command mode.Seco
1. In order to display line numbers, execute one of the commands in the Vi/vim editor: Set NumberOr: Set Nu2. In order to close the line number, execute the following command in the Vi/vim editor: Set nu!If you want to start vi/vim
VI and VIM have always been talked about, in the end what makes them so popular?VI is divided into 3 modes: General mode, edit mode, command line mode.(1) General mode:After entering VI, the default is the general mode.Useful: Easily move cursor, delete character/whole line, copy, paste.Here are some common commands:
, decrypt the files encrypted with VI (provided that you know the encrypted password):1) Use VI to open the file, such as Text.txt, to enter the correct password, and then when editing, set the password to empty, by entering the following command:: Set key=Then directly enter, after saving the file, the file has been decrypted.2) or This is OK:After opening the file correctly with ": X" instruction, and the
Reference from: http://www.cnblogs.com/itech/archive/2009/04/17/1438439.htmlITechSource: http://itech.cnblogs.com/Re-editing, only keep the usual commands, and add a little understanding and experience.1, VI of the basic conceptBasically, vi can be divided into three states, namely command mode, insert mode (and bottom line mode), and the function of each mode is as follows:1) command-line modeControls the
with P
h Adoop, Hadaap
:/e>
like, source
:/\
Find the string starting with had, \ also has special meaning
hadoop, Hadoo
:/spa *
\
spark, Spaspark
:/sp[ae]rk
match spark or Sperk
spark, Sperk
4. Text substitutionText substitution uses the following syntax format::[g][address]s/search-string/replace-string[/option]Where address is used to specify a replacement
vi/vim Find and replace using method VI/You can use the: s command to replace a string in vim. The command has a number of different details of how to use the method, you can implement complex functions, record several here, convenient later query. : s/vivian/sky/Replace the current line the first Vivian is Sky:s/v
Played three years of Linux, the most commonly used vim compiler some of the use of skills to organize the next share to everyone.The text editor under Linux vi=visual:Vim (vi improved) literally means an upgraded version of VI.The VI Modular compiler is divided into three modes:Input modeCommand mode (edit mode)Last-l
the line)N1,n2s/^/\/\//g (add "//" before the beginning of the line)Replacement:: AB MyBlog LvSantorini.oschina.net (cancellation with Unab)Note: The various shortcut keys that are set when you vim a file are only available for this edit file, and editing again after exiting will no longer work. If you want to use these shortcuts permanently, you need to edit the. VIMRC configuration file in the host directory to save all the shortcuts you need to us
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.