I have always wanted to learn the god-like editor vim, but I have never had the courage to install, uninstall, and install it, just like I used Firefox. I have installed and installed it for no less than 10 times, later, I decided to use Firefox
Configuration File Path:/etc/Vim/vimrc
SYN on; syntax highlighting
Set tabstop = 4; tab width
Set shiftwidth = 4; line feed indent width
Set backspace = 2; Set backspace availability
Set incsearch; Search auto-completion
Set Ai! ; Set
[Translation]
"Finding empty linesSearch for empty rows
/^/N/{3}: Find 3 empty lines
Search 3Empty row
[Annotation]
: Help // n
This regular expression matches three consecutive empty rows, that is, there are three consecutive linefeeds at the
The CTAG plug-in is mainly used to jump between variables and function definitions like in VC, so it is very convenient.
Download and install: http://down1.chinaunix.net/distfiles/ctags-5.2.3.tar.gz
Tar-xzvf ctags. xxxxxx
./Configure -- prefix =
From: http://blog.csdn.net/easwyIt is used for personal learning. If you have any interests, please notify me and delete it in time.The help entry for the commands used in this section:: Help helptags: Help taglist.txtThe previous article describes
1. taglist: source code structure browsingAuthor: yegappan Lakshmanan, website script No.: 273 .:Http://www.vim.org/scripts/script.php? Script_id = 1, 2731.1 function description:This is a very important plug-in. With this plug-in, we can view the
Solve the Problem of gvim menu display in Ubuntu 11.04Gvim menus cannot be displayed immediately when gvim is executed. And an error is reported:
** (Gvim: 15150): Warning **: unable to register window with path '/COM/canonical/menu/100': timeout
Link: http://blog.chinaunix.net/u/22968/showart_432334.html
Use cscope
The simplest way to generate a cssag tag is:Run csw.indexer in the top-level directory of your development project. it traverses all the following directories and generates
Search and replace Vim
Replacement in search/Which # search whichcwthat # Replace with thatn # repeat search. # repeat replacement
Replacement command of one typeg/pattern/s/old/new/gFirstGIndicates that an operation is
Although Vim was used a long time agoTuneJust use your own commands. Recently, in order to improve code writing efficiency and coding fun, I re-studied vim and found a good Vim getting started article. The original Article is in English, I think it
Ex is Vim's support for row editor ed. ed is a line-oriented editor. in ancient times, in the age of black and white terminals, there was a popular row-oriented editor Ed, that is, reading files one row at a time, displaying only one row at a time,
Vim copy and paste
Vim, as one of the best text editors, uses Vim to compile documents and write code. Every time you learn a new feature of VIM, it will greatly improve productivity. Some people have been using Vim for decades and have not fully
1. Define Variables
Vim:
Run a = 123
Emacs:
(Setq a' 123)
2. define functions
Vim:
Function Fun () // if the scope limit is not used, the first letter must be capitalized.
Endfunction
Command Line call: command! -Nargs = 1 Gdb :! Command
JavaScript is a web scripting language. Vim is the preferred editor for many programmers. Vim can be widely used to automatically complete the JavaScript syntax. To use this feature, you must enable it first.
In Vim command mode, enter the
If you need to temporarily enable it in the editor, follow these steps:
Enable CSS:: Set omnifunc = csscomplete # CompleteCSS
Enable HTML:: Set omnifunc = htmlcomplete # CompleteTags
When auto-enabling is enabled ~ /. Configure in
* Locate the specified row n:
Enter "nG"
Or enter "ngg"
Or enter ": n"
Here, n is the row number of the specified row. Note that sometimes G = gg* Jump to the top of the screen:
Enter "H"
This is the first non-empty character. Adding a number N
The pristine state
I was watching a violinist bow intensely and I had this thought: I probably have as your brain cells converted Ted to my text editor as he does to playing his chosen instrument. is it outlandish to imagine that an MRI of his brain
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