"Linux" "Vim" vim Tips__linux

Global find substitution:%s/stext/rtext/gLike what::%s/text/txt/g is to replace all the text into txt. How does vim collectively indent a piece of code or vice versa? Very simple, by V into the visual mode, select the code to indent, press > Indent

Vim supplement and multi-conditional judgment

I. VIM split screen display file (edit mode) ctrl+w然后按s 水平分屏 ctrl+w然后按v垂直分屏 ctrl+w按方向键切换屏幕 :qa退出所有窗口Two, vim edit multiple files vim file1 file2 默认显示第一个文件,在末行模式下使用:next,:prev进行下一个上一个切换 也可以加参数 -o 或 -O ,如 vim file1 file2

Vim Common commands

1.VI is the abbreviation of "Visual interface", its status on Linux as if the edit program on DOS. It can perform many text operations, such as output, delete, find, replace, block operations, and so on, and users can customize them according to

Linux Learning Summary (13) Text editor vim

Vim is an upgraded version of VI, which is displayed according to the text attributes, with the following details:General mode:1. Cursor Positioning:Move left and right one character, H LMove one character up or down, K JLeft and right down, around

Setting up a VIM environment under Mac

The IDE under the Mac is really bad, eventually giving up the IDE ready to use VIM to see the code, then you need to set up vim.Place the home directory below. The VIMRC in Vim is replaced with the following:"Set vundle Settings here"git clone https:

VIM basic Commands

Vim enters vim on the command line and goes to the VIM editorI press the I key and the lower end shows the--insert--insert commandESC exit I (insert) command for other commands to use: R file name reads into a file content and writes to the current

Vim, cut, less, cat commands

Exit Save: WqExit and force Save: wq!Force quit, do not save: q!Cursor moves to the last line of the file GCursor moves to the first line of the file GGMoves the cursor from the cursor position to the beginning of the current line ^ 0 homeMoves the

Vim split Screen

When using VIM to split the screen, you can enter directly at the terminalvim-on 1.php 2.php 3.phpVertical split screen three filesWhat if you want to open another file in a window?Press ESC, and then press the colon to enterEnter to getOf course I

Vim editing instruments

(i) Vim editor Text Editor: Plain text, ASCII text;unicode, no HTML, or metadata such as formatting tags in Word documents Type of text editor Line Editor: SED Full Screen Editor: Nano,vi,vim Vi:visual Interface

Vim Program Editor

The important task of a system administrator is to modify and set up configuration files for some important software, so at least you have to learn more than one command-line interface for this article editor.At the end of this article, we will look

Linux Vi/vim

Vim new starter VIM Advanced Advanced Tutorial vim keying diagram Vim Official document h or LEFT ARROW key (←) The cursor moves one character to the left J or DOWN ARROW key (↓) cursor moves down one character K or Up ARROW key (↑) The

How to set up multiline comments and delete annotations in vim

Multi-line Comments:1. Enter command-line mode, press CTRL + V to enter Visual block mode, then press J, or K to select multiple lines to mark the lines that need comment2. Press the uppercase letter I, and then insert the comment, for example #3.

Vim block operation

first, the visual modeThere are three ways to enter the visual mode: V,v,ctrl+v(1) Press V to enable Visual mode, to select content by a single character,Move the cursor to select.such as:(2) Press V to enable the visual mode, immediately select the

Vim Mode Lookup

1./forward lookup,? Reverse Lookup2. \v activates very magic search mode, writing regular expressions closer to Perl regular expressions, most characters do not need to be escaped3. \v activates Noverymagic mode and searches by word literals.4./E,

Vim Common commands

One, insert commandA specifier insert in the word cursorA at the end of the line where the cursor is insertedI match either insert in the word cursorI Insert at the beginning of the cursoro Insert a new line under the cursorO insert a new line on

Several ways to enter insert mode in VIM

Enter into input mode in command-line mode to tap I, A, O, S, I, A, O, SThe difference between them makes a memo: I: Start insertion at the cursor position match either A: Start inserting in the word specifier the cursor o: Insert a

A byte of vim--Learning summary

Say in front--a byte of Vim is the best book I've ever seen about vim, someone who wants to learn about the powerful vim, or someone who is already using VIM and intends to learn more about it, I think I should look at this, the content is refined

Vim editor using diagrams (Super simple)

The VIM editor uses plotsVim is a kind of vi-like text editor, but on the basis of VI added a lot of new features, Vim is generally respected as the best of the Class VI editor, in fact, the real enemy from the different variants of Emacs. 1999

Continue to write Vim editor features and bash features

This week we went on to learn the other features of the Vim editor that we didn't finish last week, first learning to use VIM to edit multiple files, vim files 1 files 2 files 3 .... Then we learned to populate the current file with other files,

Vim Configuration Python IDE

#记录#vimrc配置#git Clone Https://github.com/VundleVim/Vundle.vim ~/.vimSet nocompatible "Requiredfiletype off" Requiredset Rtp+=~/.vim/bundle/vundle.vimcall Vund Le#begin () Plugin ' Gmarik/vundle.vim ' Plugin ' vim-scripts/indentpython.vim ' Plugin '

Total Pages: 210 1 .... 62 63 64 65 66 .... 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.