Reproduced a VIM plug-in installation strategy
Original source: http://littlewhite.us/archives/212
C + + is the highest proportion of the programming language, and Vim is designed for the programmer to develop the editor, when the combination of
one. Vim
VIM has three modes: Command mode, insert mode, exit mode
its simple introduction please own Baidu, this article mainly introduces the more detailed common and uncommon but important operation
Vim File # #对file进行编辑
Go to command mode by
Turn from: http://www.lupaworld.com/?uid-296380-action-viewspace-itemid-118973
Vi/vim Basic Use MethodThis article introduced the VI (VIM) basic use method, but for the ordinary user is basically enough. I/vim the difference is simple, they are
Vim plugin: nerdtree[Tree Catalog]
The Nerdtree Tree directory plug-in can browse through all file system files under Vim and can open files. You can also filter some files by configuring Nerdtree to not be browsed by a tree structure.
Github:the
1.vim Editor: Command mode, edit mode, extended mode2. Command-line commands:A. Delete cursor line: DD left undo: U Right undo: Ctr+rB. Delete the down n rows (including the current line) where the cursor is located: NDDC. Copy cursor line: YY copy
1.vim Editor1. First Knowledge Artifact: Vim(1). Vim Considerations编辑文件时 a.当文件名称存在,那么进入文件直接编辑 b.当文件名称不存在,vim会在退出保存时自动建立文件 c.当vim命令后没有跟任何文件名称时,时无法实现":wq"退出保存的那么可以用":wq filename"(给新建文件命名并保存)(2). When Vim exits abnormally, the system creates.
Enter edit modeLowercase i in the current word match either insertUppercase I inserts at the beginning of the line where the cursor is locatedUppercase O Inserts an edit line above the cursorLowercase o Inserts an edit line below the cursorLowercase
Set
Description
Set IM
"Sets the mode to enter at startup
Set Magic
The Set Magic
ColorScheme Slate
The Set theme
Set Shortmess=ati
"When it starts, it doesn't
5.5-5.7 use and expansion of vim
Settings for VIMThe difference between ": Wq" and ": X"
": Wq" Mandatory write file and exit (save and exit write and quite). Force write even if the file is not modified, and update the file's
[VI]VI Editor Command *******************VI Create/edit filename FilePress I to enter insert mode to edit the file.Press ESC to exit insert mode.: W Save: Q exit: Wq Save and exit: q! Force exit (do not save): Set Nu Adds an asterisk to each line
Key operation:Note: Ctrl + V enters column edit mode, moves the cursor down or up, marks the beginning of the line that needs comment, then presses the uppercase I, then inserts the comment, such as "#", and then presses ESC, which is all
Exit Save: WqExit and force Save: wq!Force quit, do not save: q!Cursor moves to the last line of the file GCursor moves to the first line of the file GGMoves the cursor from the cursor position to the beginning of the current line ^ 0 homeMoves the
When using VIM to split the screen, you can enter directly at the terminalvim-on 1.php 2.php 3.phpVertical split screen three filesWhat if you want to open another file in a window?Press ESC, and then press the colon to enterEnter to getOf course I
Job One:1) Merge user information database files and group information database files vertically into one file/1.txt (overwrite)[Email protected]/]# Cat/etc/passwd/etc/group > 1.txt2) Merge user information database files and user password database
VIM frequently used shortcut keysH-Move the cursor left one character J-Move the cursor down one characterK-Move the cursor up one character L-move the cursor right one character down 15 lines-15jCTRL + F-the screen moves down one page Ctrl +
va{Select {} intermediate content, including {}va[SELECT [] intermediate content, including {}VA (check () middle content, including {}vi intermediate content, including <>Change the above a to I, not including the corresponding brackets;VI "SELECT"
1, CENTOS7 installation vimYum-y install vim (simple rough installation method)2, in vim display Chinese does not appear garbled(1), Vim ~/.VIMRC (~/.VIMRC for vim configuration file)(2), enter:Set fileencodings=utf-8,gb2312,gbk,gb18030Set
This week we went on to learn the other features of the Vim editor that we didn't finish last week, first learning to use VIM to edit multiple files, vim files 1 files 2 files 3 .... Then we learned to populate the current file with other files,
Summary:A buffer is the in-memory text of a file.A window is a viewport on a buffer.A tab page is a collection of Windows.Window Toggle Shortcut key:Nnoremap j down switchNnoremap k Toggle UpNnoremap h Switch leftNnoremap l Right ToggleWindow
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