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
/cache/yumYum Create cacheYum Makecache3. Install the software from the source codeTAR-ZXVF xxx.bz2 files, etc.Then go to compile with directory./configureMaking make InstallThe./configure can be set at compile time by selecting--prefix= specific path and parameters4. The most useful tool under the configuration file is Vim's main use:Vim .... txt for editingI enter edit modeESC exits edit mode into command mode: Q Do not save exit: q! Do not save a forced exit, the user has modified the file c
use:P luginupdate":P luginsearch foo-search foo; append '! ' to clear local cache":P Luginclean-Remove unused plug-ins, need to confirm; Append '! ' automatically approve remove unused plugins""check: H vundle for more details and wiki and FAQs"put yourself on a non-plugin fragment after this lineInstall the required plugins
The plug-in you want to install, according to the address method, fill in the address between Vundle#begin and vundle#end can be
After saving, there are two wa
Noai(cancel) is case sensitive:: Set ignorecase or : Set IC: Set Noic(cancel) to display matching parentheses:: Set Showmatch or : Set SM: Set NOSM(cancel) to display syntax coloring:: Syntax on: Syntax off(cancel) The search results highlighted:: Set Hlsearch: Set NohlsearchGet help:: Set: Help [command]————————————————————All of these are temporary and require long-term and effective changes to the Vim configuration fileVim configuration file:Global:/ETC/VIMRCPersonal:~/.VIMRC————————————————
to N2 are replaced with P2: g/p1/s//p2/g: Replace all P1 in the file with P27) Option settingsAll: List all option settingsTerm: Set terminal typeIgnorance: ignoring case in searchList: Display tab stops (CTRL+I) and end-of-line flags ($)Number: Show line numbersReport: Displays the number modified by the line-oriented commandTerse: Displays a short warning messageWarn: Displays no write message if the current file is not saved when you go to another fileNomagic: Allows the use of special chara
:]: Represents the space bar and TAB key[: Space:]: Any character that generates whitespace, including the spacebar [TAB]CR, etc., [: blank:] is part of [: space:][: Graph:]: All but the space character (SPACEBAR and [Tab] key) All other keys, and [: blank:] the opposite?[: Cntrl:]: All control keys, including Cr,lf,tab,del, etc.[:p rint:]: All characters that can be printed out2. Copy the/boot/grub/grub.conf to/tmp directory and delete the white space characters from the beginning of the/tmp/gr
located D$: Delete to end of line D . copy Yy: Copy the row of the cursor to the buffer. P: Paste the characters in the buffer to the cursor location e ) . replace R : The character at which the cursor is replaced R: Replace the character where the cursor is, until you press ESC F ). Redo the last actionU: If you mistakenly execute a command, you can press U immediately togo back to the previous operation. multiple replies can be performed by multiple "U"2 , la
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 contents of a vim open file to be written to File1, which overwrites the original content in the File1 (File1 already exists)!command # Temporary execution command (the command cannot be an alias) R!command # Writes command execution results below the
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.