one or one-like mode: Delete, copy and paste Class command
X,x x to delete one character backwards, X to delete a character previously
NX (n represents number) Delete n characters backwards
DD Delete when forward
D Delete all characters in the
Running vim in the terminal or running Gvim will encounter this problem, when the window full screen, the left and right side of the border may appear, this border in the terminal vim is the terminal background color. Full-screen effect for spacevim+
When using vim to write code, I like to look at the definition of the structure in the header file while writing the implementation code, so that it is often used in multiple windows to edit, view the document.1. Open multiple files at the same time
5.1-5.4Vim and VI are almost the same, the only difference is that when editing a text, using VI will not show the color, and using VIM will show the color.VIM has three modes: General mode, edit mode, command mode.When the system is minimized, the
Shortcut keys commonly used in the command mode of the 1.vim editor:DD Delete (cut) the entire line where the cursor is located5DD Delete (cut) 5 lines starting at the cursoryy copies the entire line of the cursor5yy copy 5 lines starting at the
Fast indent 1. Use commands to quickly adjust indent operationsThis section learns how to indent quickly in vim and indent operations are effective in normal modeOpen a file for editing$ vim protocols
Normal mode input 15G , jump to 15
5.1:vi and Vim:Vim is a text editing tool for all Linux systems, the same as with Windows Notepad, used to manipulate and edit files:Vim is an upgraded version of VI, VIM (will display font color): VI (no color is displayed)1, the installation of
Multi-file Mode:Vim FILE1 FILE2 FILE3 ...: Next Next:p Rev A previous: First One: Last One: Wall Save All: Qall Quit allWindow-delimited mode:Vim-o|-o FILE1 FILE2 ...-O: Horizontal split-O: Vertical splitSwitch between windows: Ctrl+w then arrow
Reference Document: http://blog.csdn.net/ii1245712564/article/details/46960387First, comb the key knowledge for easy accessV (small v): Enter visualizationV (large V): Enter visual lineCtrl + V: Entering a visual blockThere are also some related
Redis Advanced configuration file, modify line 37Ps-ef |grep redis|grep-v grep to view the process and filter the currently viewed processVI and VIM IntroductionVim is an upgraded version of VI.A text editor under the Linux system
Vim is a text editing tool, so you don't have to remember everything when you're learning, as long as you work more efficiently with vim. This article summarizes the operation method of vim from the practical point of view, hoping that after reading
Vim edit the general operation of the file1. Vim #在命令行中输入vim, enter the VIM editor2. I #按一下i键, the lower end of the display--insert--#插入命令, in Vim may have any character function3. ESC #退出i (Insert) command for other commands to use4.: r filename
In Linux, the Vim editor is the system's own text editor, which is powerful. This vim (VI) is very simple. Note: Linux commands are lowercase!Vim Editor, you can create a new file can also modify the file, the command is: vim/usr/local/con.cfg If
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 macro and registers the result in register XQ Exit Record mode@x playing macro commands
A. Terminal Chinese display garbledSome netizens said to modify/var/lib/locales/supported.d/locale and/etc/default/locale It's all right, but if multiple people share a machine, there's no root authority. This is obviously undesirable. Now we
Source: Yannesposito Translation Source: Chen YuVim's learning curve is quite large, so if you're starting to see a bunch of Vim's command classifications, you're bound to lose interest in the editor. The following article is translated from "Learn
1. Just enter command mode2. I enter insert modeYou can only enter content in insert mode, if you want to delete the content, you need to switch to the command line mode and move the cursor to delete.3. ESC exit Insert mode to enter command line
Reprint: Change the Vim profile under Ubuntu to create a C + + styleVim's default configuration is not satisfactory and requires its own configuration.The default configuration file is:/ETC/VIM/VIMRCWe can set up our own configuration file in the
One, vim python automatic completion plug-in: pydictionYou can implement the following Python code auto-completion:1. Simple python keyword completion2.python function Completion with parentheses3.python Module Completion4.python module internal
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