Linux under VIM command

Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:QX starts recording the macro and registers the result with the Register XQ Exit Record mode@x playing macro

"Reprinted" Vim compares the contents of two files

1. Use the VIM comparison mode to open two files:vim-d file1 file2OrVimdiff file1 file22. If you have already opened the file File1, then open another file file2 to compare:: Vert diffsplit File2If you do not use the vert command, the diffsplit will

Column mode in VIM

1. Move the cursor to the position where you want to operate.2. Press CTRL + V into "visible" mode and select the column to operate on each row.Select multiple Coulmns using left/right arrowSelect multiple rows using Up/down arrow3. Enter SHIFT + i

Installation and use of VIM

First, install VIM.1. No network conditionsMount CD to MNT under Mount/dev/mount/mntThen use the RPM command to install the rpm-ivh/mnt/packages/vim-common-7.2.411-1.8.el6.i686.rpm/mnt/packages/ vim-enhanced-7.2.411-1.8.el6.i686.rpm2. Network

Vim Use Notes

Move HJKL ctrl+udbf f+ character: Moves backward to the specified character f+ character: Moves forward to the specified character Example: FG moves to letter G 0dfH: Delete From the beginning of the line to the first H Move in Word W Move head

Vim Text Editor

Three different modesCommand mode (edit mode): The default mode after opening the editor, you can move the cursor, delete and so on.^: Jump to the first non-whitespace character at the beginning of a line$: Jump to end of lineGG: Jump directly to

File records under Linux $HOME (Vim/shell)

1.vim Editor (script) configuration file-RW-------1 Xqzhang 254449427 19K 8 17:06. Viminfo-rw-r--r--1 Xqzhang 254449427 4.3K Jul 11:25. VIMRCDrwxr-xr-x Xqzhang 254449427 408B 10:06. VimNote: Adding the corresponding Vim editor script needs to be

Vim Simple Configuration

Vim is a strong to no friends of the text editor, often using Vim editor friends must have a deep experience. Here are some simple vim configurations.(1) Vim ~/.VIMRCEdit the following to save the exit.(Note: Osx/ubuntu/centos/redhat test

Vi/vim Common operations

I. Buttons available in general mode1. Cursor movementh or LEFT ARROW key: The cursor moves one character to the leftJ or DOWN ARROW key: Move the cursor down one characterK or UP ARROW key: The cursor moves up one characterL or RIGHT ARROW key: The

Vim Learning Notes

1. Hit two times the letter D removes the cursor from the row2.vim + filename Open file positioning cursor at the end of the beginningVIM +n filename cursor positioned on nth rowVim +/xxx filename navigates to string xxx first occurrence line3.vim

How vim sets the number of rows displayed in Linux

Enter the following text in the. VIMRC (or/ETC/VIMRC) file: Set tabstop=4 set softtabstop=4 set shiftwidth=4 set Noexpandtab set nu set autoindent set Cindent: Tabstop: Indicates the length of how many spaces a tab appears to be, default

Vim Learning Accumulation (i)

The first is a simple understanding of the three states (which are generally accepted as patterns), namely: Insert, view, and general.After entering vim, the default is the general mode, when the direct use of ' a ', ' I ', ' o ' (that is, enter the

Vim front end plug-in installation

JsbeaufityReference: Https://github.com/maksimr/vim-jsbeautify1) According to the author's instructions is mainly to install js-beautify with bundles and then use the relevant function key mapping on it;2) The main problem is that when running on

Vim's editor

Use of the editor:ESC Command modeA insert mode (rear insert)I insert mode (front insert)o Open a new line below the current line and enter insert modeO open a new line above the current line and enter insert mode: Edit modeV Visual modeCommand mode:

Vim color selection + Press <F9> Auto compile Run + other basic configuration (Ubuntu)

The final exam this time = = Water break, now ready to transform vim.First you need to understand the difference between vim:http://coolshell.cn/articles/5426.htmlAnd then you must have been in the bare vim water a pitch? Must have found some

Installation vim appears terminal libary error, workaround

When installing vim via source code, the terminal libary is missing.After installing ncurses, this problem still occurs.After finding the data, the following command can be used to install vim properly.env

VIM Environment Setup

Ctags-r the root directory to generate tagsAdd set tags=/.../.../tags in. vimrcCTRL +] JumpG CTRL +] cross-directory jump: TS Lists all: TP jumps to the previous: TN jumps to the nextTlist InstallationDownload the latest version of TagList plugin to

26>>vim

When using vim for editing under the terminal, by default, the editing interface is not displaying line numbers, syntax highlighting, smart indenting, and so on. In order to better work under Vim, a configuration file needs to be set manually:.

Vim Learning Summary

two modes of vimCommand modeEdit mode Command function Esc Exit edit mode cursor Command Command function H J k L Lower left top right

Vim compilation (with Python)

This theme looks a little dirt, you are a program ape, even all day will be configured, build, compile, play vim. You've been mixed up for almost 10 years, how do you write code? Ashamed to say, why write this, because this compilation bothered me

Total Pages: 210 1 .... 185 186 187 188 189 .... 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.