1. Make sure to see the color in the Linux terminal, configure ~/.BASHRC the following uncomment:
# Uncomment the following lines if you want ' ls ' to be colorized:
Export ls_options= '--color=auto '
Eval "' Dircolors '"
Alias ls= '
Redis Advanced configuration file, modify line 37Ps-ef |grep redis|grep-v grep to view the process and filter the currently viewed processVI and VIM IntroductionVim is an upgraded version of VI.A text editor under the Linux system
Personal plugins and configurationsSetNocompatible"To Remove the VI consistency, you must addFileType off"you have to add"Advanced Keys": qa! Close all the tabsSetCursorlineSetNu"parameter for CtagsSetAutochdirSettags=tags;"parameter for
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
Let's look at the color configuration scheme provided by the VIM editor:First enter the VIM's color directory (/usr/share/vim72/colors, different system directories, it is recommended to set up in ~/. Vim directory, and then in some directories to
Vim shortcut key package (i)
move cursor
h-- l (Small letter l Span style= "font-family: ' Times New Roman ';" >-- Move right
k-- move up j-- below move
1. Regular expressions(1) Extension: Unlike grep, egrep or grep-e do not need to be added \ Escaped(2) Character matching.: Matches any single character[]| [^]: matches any single character outside the specified range |(3) Number of matches*: Any
Vim tip: How do I delete/keep a particular line in the text?Show InvisiblesOne World One DreamTask 1: Keep only the headings in the tab and delete the other lines: g/re/dKnowledge points: Using: Global with: Delete commandRun the command:/\v\:
(articles are extracted from other places and summarized, if there is infringement, please contact the Administrator)
Vim Editor---Bulk comments and anti-annotations
When writing code using VIM, it is often necessary to use bulk
When using the GIT command-line tool, you often accidentally enter the Vim interface, for example, git commit does not fill in any descriptive information. For users who are accustomed to the Windows visual interface, they may suddenly feel
Insert Mode:iSave:: WSave and Quit:: WqMove cursor:h (left) J (next line) K (last row) L (right)Open a new Line:o (below-line) O (above-line)Delete:dCopy:yPaste:pUndo:uLine-connection:jFind and Replace::%s/f/r/g f:texts to find r:texts to replace
Vi/vim:Edit Mode insert modeSet line number: Set Nu:set NonuLine number move: GG G ng/:nMobile: H, J, K, L 0 $ H, M, LSearch:/"Characters searched" n Next n ignored case: Set ICCopy yy/y Nyy/nyCut dd ndd Paste p/pReplace:R R + ESCFull-text
The vi Editor, the full name of visual interface, can perform numerous text operations such as output, delete, find, replace, and so on. VI is not a typesetting program, it is not possible to arrange fonts, formatting, paragraphs, and other
Vim is a powerful text editor under the Linux system. Trust the program that is familiar with the Linux development environment apes and OPS are playing well.Here is a brief introduction of the commonly used command, I hope to help youMACROS macro
Problem:Ubuntu does not have Vim installed by default and appears:[email protected]: ~$ vim test.cThe program ' Vim ' can is found in the following packages:* VIM* Vim-gnome* Vim-tiny* Vim-athena* VIM-GTK* Vim-noxTry:sudo apt-get Install
2.1 Multi-file editing 2.1.1 using Vim to edit multiple filesThere are two forms of editing multiple files, one being a parameter that is used before entering Vim is multiple files. Another is to enter vim and then edit the other files.Create two
: Set fileencodingYou can display the file encoding format. If you just want to see other encoded files or if you want to solve the problem of viewing files garbled with Vim, add the following to the ~/.VIMRC file:Set Encoding=utf-8
VIM Command Summary1. Delete charactersTo delete a character, simply move the cursor over the character and press "X". 2. Delete a rowDelete a whole line of content using the "dd" command. After deletion, the following lines are moved up to fill 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.