Replace using VIM, reuse part of the search pattern

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

Introduction to Vim

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

Very useful vim Plugin

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

Linux VIM Environment configuration

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

Vim Simple Operation---learning essays

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

Day8-1 vim

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 editor

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

Vim Introduction and color display

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

Vim Editor notes, annotation, deletion and recovery

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

Super-Easy VIM configuration

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

Use of Vim

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

Use of Vim

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

Vi/vim use

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,

Vim Text Editor

vim编辑器三种工作模式: 命令模式 输入模式(插入模式) 末行模式 1, 光标跳转 Home 键、数字 0 跳转至行首 End 键 跳转到行尾 PgUp 键、PgDn 键 向上翻页、向下翻页 1G 或 gg 跳转到文件的首行 G 跳转到文件的末尾行 2,复制/粘贴/删除 yy、4yy 复制光标处的一行、4行 p 粘贴到光标处之后、之前 x 或 Delete键 删除光标处的单个字符 dd、6dd 删除光标处的一行、6行 d^ 从光标处之前删除至行首 d$ 从光标处删除到行尾 C

Linux Getting Started (iv) use of--VIM with bash

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

Vim edit artifact Common basic commands

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-5.4vim Editor

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

Linux VIM Usage

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

Linux Vim Common options

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, 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

Total Pages: 210 1 .... 169 170 171 172 173 .... 210 Go to: GO

Contact 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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.