I. Adding multiple lines of comments
1. Vim's command mode (ESC enters command mode):
2. Press CTRL + V to enter visual mode (visual BLOCK);
Note: The VIM command mode v enters the visual mode, CTRL + V. Enters the visual block, simple to
Now the Linux system is generally installed by default vim editor, if there is no VIM editor installed, there will be a VI editor, the VI editor produced more time than the mouse to come earlier, although the function is very powerful, but I
Command mode (move cursor, copy, cut D, paste p, delete x, Undo U, Redo Ctrl+r, replace R)Insert mode (write new data) A (post-word insert) I (insert before word) O (Insert new line)Last-line mode (save File W, Save as W filename, open file o, read
My working environment is centos6.5. Now is the Linux rookie stage. So I will be very careful to tell you how my vim is configured.Let's start by showing the results:650) this.width=650; "src="
First contact This a little strange, but there is a hint of surprise! For a novice to the configuration of vim really do not know, so from the Internet to find information to browse the blog has some gains, so I think to share to everyone, I feel
Next, configure TagList.First download here:http://www.vim.org/scripts/script.php?script_id=273I downloaded the latest version, 4.6After downloading, unzip to ~/.vimThen open it in your own working directory or create a new vim(Mine is test.c)Then
Common commands1, vi Basic concept of basically VI can be divided into three states, namely the command mode insert mode (the last line mode), the bottom row (last command mode) 1) control the movement of the screen cursor, character, Delete the
Watch video tutorial: Brother even Linux cloud computing Video tutorial 5.1 text editor Vim-5.2Insert commandA: Insert the word specifier in the cursor position;A: Insert at the end of the line where the cursor is located;I: Insert the word match
First, learn the VIM native shortcut keys and related commands before adding plugins. (When used to record, temporarily will be chaotic, irregular sorting)Ps:ctrl+s means stop output to terminal; The ctrl+q resumes to the terminal output stream.
VimZR all ExpandedZM All mergerVim shortcut keysSHIFT + I (' I ') for editingSHIFT + 4 (' $ ') jumps to the end of the lineShift + V (' V ') select rowSHIFT + 0 (') ') jumps to the beginning of the lineCtrl + V module Edit FirstThen s, or SHIFT + $,
Reference: http://blog.csdn.net/xiyuan1999/article/details/5680102It is necessary to copy and paste entire lines (multiple lines) in the VI editor.1. Copy1) Single-line copyIn command mode, move the cursor to the line that will be copied, and press "
Tag identifiers are stored in files generated by Ctags and other programs.: Tag and command jumps to the point where the cursor is located (if the cursor is no longer on the symbol, the first symbol on the right)Also g+ left mouse button and ,g+
01.Gtags func: View definitions at02.gtags-r func: View references at03.gtags-s text: View tags not defined by the database04.copen: Open quick fix display window05.cclose: Close the Quick fix display window06.cn: Next item07.CP: Previous08.cl: List
Turn from: http://blog.csdn.net/ceven2010/article/details/7406341 One, move the cursor1, left shift H, right shift L, Move down J, move up K2. Page Down CTRL + F, PAGE up Ctrl + B3. Turn down half a page Ctrl + D, turn up half a page Ctrl + U4, move
Some basic and advanced operations on Vim can be found in the links below.Http://coolshell.cn/articles/5426.htmlWhen using Vim to edit text, it involves bulk substitution of text content: s/vivian/sky/replaces the current line the first Vivian is
Molokai Color Scheme for VimI prefer Molokai ' s dark grey background. Installation with pathogen
CD ~/.vim/bundle && \git clone https://github.com/tomasr/molokai.git
Now Molokai is installed. Add the following to your VIMRC.
When writing a program, it is often necessary to start writing a brief introduction to the program and the author's information, as follows:This kind of information, in addition to the file name and modification time may often change, other basic
0x01First download the plugin in http://www.vim.org/scripts/script.php?script_id=1658 (may need to ladder, also can be in https://github.com/scrooloose/nerdtree. Download)0x02Installation is simple simply unzip the zip package to move the required
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