Just list my usual, richer and more comprehensive please do it yourself GoogleBasic command:u : Undo Step up ActionI: InsertSearch for words:/word : Starts at the cursor position, looking down to a name named word the string? Word: Starting at
ReproducedOriginal URL: http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.htmlIt took a long time to tidy up, and it was easy to use and share.My VIM configuration mainly has the following advantages:1. Press F5 to directly compile and
Vim Basic UsageModal editorMode:Edit mode: Command modeKeyboard operations are often understood as editing commandsInput modeLast-line mode: Vim built-in command interface, execute VIM commandOpen FileVIM [option] ... [File] ...Mode conversion:Edit
Vim is the legendary sword without front, big Qiao not work. Use good seconds to kill a large help IDE, with bad, hurriedly to learn.First, take a picture, as a desktop background (basic not how to look, worry Mulberry: ()After some basic commands,
Normal Mode ==> insert mode
Press I to insert before cursor
Press I to insert at the beginning of the line
Press A after the cursor to insert
Press S to delete the word Fu insert
Press A to insert at the end of a row
Press O
First try to use CD ~/.vim to enter the. Vim folderIf not, create a mkdir ~/.VMThen create the colors after entering the. Vim folderInput instruction mkdir Colorsthen enter the instructions.git clone git://github.com/altercation/vim-colors-solarized.
With Vim for some time, I would like to write down some interesting tricks.
Jump
HJKL, left bottom right.
B/E jump to top/next word
^/$ jump to wardrobe/tail
from {, [, (, corresponding},],) jump to each other, you
First, open the file
Vim +#: Open the file and locate it on line #
Vim +: Open the file and navigate to the last line
Vim +/pattern: Open the file and navigate to the beginning of the line that was first matched by PATTERN
tab and indent are not the same thing.tab is a character (tab) whose display width can be defined. You can change the mapping of the TAB key, set it to n spaces, and N is determined by the tab width. Indentation refers to a concept in vim that can
a/i: Before entering vim, press (a/i) into input mode (a appends the character after the cursor, I insert the character before the cursor)ESC: Enter command line modeCorrecting text when inserting:Ctrl+h: Character Delete key ctrl+u: Row Delete key
ViEnter VI without reading into any fileVI filename enters VI and reads the file with the specified name (both new and old files can) store and exit vi:w filename is stored in the specified file but does not exit VI (the current working file name if
Reprinted from Http://blog.chinaunix.net/uid-27213819-id-3813909.html1. Create a. vimrc file in your own home directory. Console input vi ~/.VIMRC carriage return.2. Enter the following text in the. vimrc file?Copy CodeSet tabstop=4Set
The most common use of vim to edit a single file, see the source code. is to write a few K line of code when there are no other plug-ins, just set a highlight and some of the properties of their own. The advantage is that it can be used immediately
Open VIM configuration file, where/ETC/VIM/VIMRC is addedC code1 set fileencodings=utf-8, gb2312,gbk,gb18030 2 set termencoding=utf-8 3 set ENCODING=PRC Save to exit, this time VIM will be able to display Chinese correctly.For Gedit, the
The VIM compiler provides commands that can set their environment properties.use under the terminalVimwhen editing, by default, the editing interface is not displayedLine number, syntax high brightness display, smart indentand other functions. In
1. General modeMoveh or direction left-------------------left to moveMove under--------------------J or in the directionK or move------------------on the directionL or Direction right-------------------right Move Crtl+f Move down one page
Command HistoryCommands with: and/begin with a history, you can first type: or/Then press the up and down arrows to select a history command.
start VimEnter the following command in the Command line windowVim starts vim directlyVim filename
Original address: Http://blog.csdn.net/AbnerChai/archive/2005/09/03/470824.aspxMove cursorOn: K NK: Move up n rows 9999k or GG can move to the first line G move to the last rowUnder: J NJ: Move Down n rowsLeft: H NH: Move n columns to the leftRight:
Vi and vim Editor (11): advanced editing method (2), vivim
This chapter describes how to save commands in the vi editor.
Save command:
Vi and ex provide many methods to save a long string of command sequences. In this way, you only need to enter a
Learn vi and vim editors (5): go beyond the basic barriers, vivim
This chapter summarizes the previously learned editing commands such as "c", "d", and "y", and learns some new knowledge: other methods for entering vi, use a buffer to store dragged
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.