http://www.vim.org/scripts/script.php?script_id=3695This plugin can select the appropriate annotation method based on the type of file you are currently opening.The command used is\\+ displacementFor example, if you want to annotate a line, you can
I think every coder has a deep understanding of how important it is to modify this operation in the world of code.Instead of modifying it, it's nothing more than removing it and inserting it, but Vim combines it with efficiency.Talk less, let's use
In the previous section we talked about the movement in vim, since it has been able to navigate between the screen and the cursor.So, let's talk about the insert command now.I do not know how many new vim novice and I was (last year), vowed to think
Installed operating system generally with vim editor, but the default does not support GB2312 Chinese, open file garbled, the solution is as follows.1. Open the following filesudo vim/var/lib/locales/supported.d/local2. Add the following:Zh_cn. GBK
Because the Linux teacher assigned the homework, so plan to take some time to put their own installation of the process in the blog park, convenient for later review (master bypass)The first:VIM installation: Open VIM's terminalAfter typing "vi" on
Gvim's Tabe tab opens in the same page (tab) and has the same effect on buffer, adding a new bufferYou can assume that the command-line mode of Gvim is similar to the operation in bash shell.Pass in command-line mode! Comm can execute shell commands
There is a. VIMRC under the user's home directory (/home/username)./etc There is also a VIMRCGenerally only the user home directory under the. VIMRC this profile is valid only for usersUse Su-username for configuration to take effect after change (e.
The previous log has been documented in step by step how to configure the Vim development environment on a native Mac with a variety of plugins.With a certain experience, the configuration of the VIM environment to the lab remote server centos6.4
Mark Highlight Plugin
• Introduction to Plugins Mark is a vim text highlighting plugin that can highlight different text in different colors at the same time. For example, you can highlight some of the key variables to help understand when
The configuration file for vim in CentOS is stored in the/etc/vim directory with the configuration file named VIMRCin the terminal, enter the following command to edit the VIMRC configuration file:sudo vim/etc/vim/vimrcor sudo gedit/etc/vim/vimrc1,
One, vim repeat command 1. Repeat the last commandIn normal mode . (decimal point) means the last command operation is repeatedCopy test files to a local directory$ cp /etc/protocols .Open a file for editing$ vim protocolsNormal mode input x ,
First, 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 to the end of the line $, move to the beginning of 0 (number),
Three modes of VIMGeneral modeIn this mode, you can: move the cursor up or down, delete a character, delete a row, copy, paste one line, or multiple lines.Cursor movement in general mode
h or LEFT ARROW key
The cursor moves one
First use VIM to open the file that needs to be edited or viewed in binary format, not using the-B parameter sometimes results in a conversion error, as described in the post-divider section.Vim-b File-to-open.datThen use XXD to convert the file
Vim is one of the most commonly used full-screen editors in Linux and operates in three modesedit mode : Also called command mode, provides basic operations on text, such as moving up and down, and so on.Input mode : As the name implies, input
Replace command format
• Command Format: [Replace-range] s/replace-pattern/replace-string/ [c,e,g,i]• Command Description text replace range , in general form, is [M,n] , which indicates that the text between rows of M
Brief introduction:Vim is a well-known, powerful, highly customizable text editor similar to VI, which improves and adds many features on the basis of VI. Vim is purely free software.Three modes General mode:Vim opens a file and goes into general
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