Reading large code, we often need to open a lot of code files, search for various definitions. Windows used to use the IDE's friends, when moving to Linux may feel very uncomfortable, can not find the right reading tools. In fact, the almighty vim
This article is from Svtter's blog, reproduced please retain this information
Write with VIM (1)
Vim's Next stepFor myself, it is also in this step.Now that you have a knowledge of vim, HJKL will, F can also be used, , may be
http://blog.163.com/[email protected]/blog/static/11135225920116891750734/Under normal mode, the command >> increments the current line, and the command decreases the indentation for the current line. We can use numbers before the command to
The configuration file for vim in Ubuntu is stored in the/etc/vim directory with the configuration file named VIMRC
Show line Numbers
Syntax highlighting
Auto Indent
Show commands in text
Show nearest brace match
Smart Match
Smart
Centos build Golang Environment, vim highlighting go keyword settings1: Download https://golang.org/dl/download go1.4.1.linux-amd64.tar.gz archivelinux64-bit2: Switch sudo permissions to unzip the/usr/local/directory under tar xzvf go1.3.linux-amd64.
Http://www.cnblogs.com/ini_always/archive/2012/03/03/2378554.htmlCopy the VIM profile _VIMRC under Windows to your Mac and re-command it to. VIMRC, which is expected to implement a shared profile. But when I started vim, I reported not a editor
1. Common mapping Setting method": Combination of actions performed by map map key combination": Set key mapping": Noremap the characters in the map key combination mapping Key": Cancels nested mappings for a character": Unmap Map key combination":
1. Edit another file": Write Edit Foo.txt": Save changes to the current file and open ' Foo.txt '": edit! Foo.txt ": Discard changes to the current file and open ' Foo.txt '": Hide Edit Foo.txt": Temporarily do not save the current file, and open '
Horizontal cutting:: Split: Split xxx (file name to open): New (creates a file in a fresh window) K: Jumps to the upper window (if uppercase K, the current window is moved to the top) J: Jump to the following window (similar to the above)Vertical
Reference:http://blog.csdn.net/longxibendi/article/details/38276847The VIM editing program has three modes of operation, called edit mode , insert mode , and command mode, respectively. Note: Some instructions cannot be executed on my machine.
Yum-y install VIM, it is normal to use VIM to edit the text.But sometimes there will be vim can open, insert or modify the file, there is garbled, case of strange action.The reason is that Vim is not enabled properly.First, ensure that the client's
Vim function is very powerful, but has been useless proficiency, will only use some basic functions, in the good plug-in configuration is not configured to use this basic configuration. Study slowly laterVim Change basic configuration vim default
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
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
2014-11-22 UpdateFile ABC1, you need to edit the third line of ABCVIM +3 ABC2, you need to query the test character in the ABC fileVIM +/test ABC3, create three files AA bb ccVim AA bb cc: N switches to the next file: N switch to previous file can
y:To substitute this matchn:To skip this matcha:To substitute the and all remaining matchesq:To quit the commandl:To substitute the match and quit (think of "last")^E:To scroll the screens up by holding the Ctrl key and pressing E^Y:To scroll the
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
Fedora vim cannot be highlighted, and Fedoravim cannot be highlighted.Installation version: Fedora 20By default, run the rpm command to check whether vim is installed.Try to install with # yum install vimPrompt conflict with current versionReason:
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