Reference: Https://unix.stackexchange.com/questions/35206/replace-using-vim-reuse-part-of-the-search-pattern\0is the whole match. To use the IT need to set it as this and use \1.s/(\([0-9]*\))/{\1}/Like trying to test_12 the file test_2323.A string
About VIM:Vim's predecessor is the VI (Visual editor) editor, the VI editor is the most basic text editor on Linux and Unix, working in character mode. Because no graphical interface is required, VI is a highly efficient text editor. Although there
CtagsC Program reading Auxiliary tool . It's a lot of trouble to have to jump between files when looking at C + + code, which is ctags to solve this problem. Ctags is a tool for Linux, but it is used to generate tags files for vim, VIM can be used
Under the user directoryCreate User Profiles ~/.VIMRC1. Command descriptionVSP Vertical Paging2. Basic ConfigurationSyntax on " syntax highlighting turn on set tabstop=4 "tab width set to 4set Expandtab " tab
Delete Cut X ---> Delete the character of the current cursor DD ---> cut the current line (delete the current row) P ---> Paste the current line (paste the next line) p -- -capital P paste yy in current line ---> Copy
Vim Editoris an upgraded version of VI with color displayInstall Yum install-y vim-enhancedCopy the passwd file to a different directory with no color after vimGeneral modeLeft and RIGHT ARROW keys or KJHL four keys to move the cursorN-directional
Introduction to the basic operation of VIM editorYun ZhengjieCopyright Notice: Original works, declined reprint! Otherwise, the legal liability will be investigated.Maybe a lot of small partners have heard of VI editor or VIM editor. They are one of
1. Vim IntroductionIn the previous chapters, we used the VI command many times, and Vim and VI were actually the same commands, using the same.Here's a look at Vim,For example, use the command vi/etc/passwd, enter, see the contents are black and
1. Notes :Move the cursor to the comment headerCommand mode Ctrl + V, enter column modeMove up and down to select what to commentPress Caps I to enter insert modeInput//or #Press two times to exit2 Solution NoteMove the cursor to the ready-to-note
Https://github.com/ma6174/vim-deprecated Easy Installation Method:Open the terminal and execute the following command to install it automatically:wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
or manually install it
First, the common key description1. General mode
Keys
Description
0
Move to the front of the line
$
Move to the last face of the line
G
Move to the last line
Three modes of VIM:
Command modeESC enters in any mode
Edit modeCommand mode--"edit mode"
I: Before the character of the current cursor
A: After the character of the current cursor
O: Create a new row
1. Vim has a total of 4 modes:
Normal Mode (Normal-mode)
Insert mode (Insert-mode)
Command mode (Command-mode)
Visual Mode (Visual-mode)
Normal modeThe default is in normal mode when Vim is started. No matter what mode you are in,
This series of Linux primer is I in the "bird Brother's Linux private dishes" based on the summary of the basic content, mainly to record their own learning process, but also convenient for everyone to understand brieflyLinux distribution is an
Three modes of vim editing artifact:
Command mode
Insert mode
Last-line mode
$vim name +number Jump directly to the number line of the fileCommand mode, insert mode i : Insert before current cursor I : .... at the beginning
5.1 Vim Introduction1. vim is an upgraded version of VI2. Vim is a color display 3. Yum install vim command: [[email protected] ~]# Yum install-y vim-enhanced 4 . vim three modes : General mode edit mode Command mode Enter
VimGeneral mode, edit mode, and command line mode, respectivelyGeneral mode: Open a file with VI directly into the general mode ( This is the default mode ). You can use the up and down buttons to move the cursor, you can use the delete character or
Vim command
Three different modes
Command mode
Insert mode
Last Linemode Bottom line mode
Bottom-line mode common commands
: W Save
: Q exit
:! + command
Ubuntu: install and use vim, ubuntuvim
Ubuntu: install and use vim
1. Install vim
Run the following command on the terminal: sudo apt-get install vim-gtk.
Ii. Use vim
Operation Mode:1. In normal mode, the default mode is normal. You can only
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.