Vim highlighting the syntax structure of nginx configuration file1. Download vi syntax highlighting configuration file to ~/.vim/syntaxNote: Create the directory if it does not exist#cd ~/.vim/syntax#wget
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
view edit binaries with vimvim makes it easy to edit binary files, which the individual thinks is better than the binary editing methods of Emacs. the editing of the binary files in Vim is the first to dump the file into the binary text form by the
Scope of application: a beginner who has some knowledge of vim.1 General Mode
Move cursor
H or ←
The cursor moves one character to the left
J or ↓
Move the cursor down one character
K/
Problem Description: After installing the system, just want to start to write the program, found that Vim has not been installed, with Su-switch to root afterRun Apt-get install vim directly, prompt to insert disc source, then enter, into an
Original link: http://blog.csdn.net/love__coder/article/details/6739670
1. Cursor movement
Top: K
Under: J
Left: L "Letter L lowercase"
Right: H
Beginning of previous line:-"Minus"
The beginning of
1. Cursor movement
On
Under
Left: "Lowercase letter"
Right:
The beginning of the previous line: "Minus"
The beginning of the next line:
Beginning of line: "Number 0"
End of Line:
The
Vim/etc/vim/vimrcSet Nu "Show line numberSet Novisualbell "Do not blinkThe set nocompatible "remove the nasty about VI consistency mode, avoid some bugs and limitations of previous versions55 "Show Chinese helpIf version >= 603HELPLANG=CN
工欲善其事, its prerequisite. In the development process, convenient and fast development environment, can improve work efficiency; A beautiful interface can make us happy, and most importantly, to keep us in the deep and unpredictable of the layman ~If
1. Download:Download page: http://vimcdoc.sourceforge.net/Select "Latest platform independent Tarball, including an Linux/bsd installation Script" "1" download.2. Installation:Many people on the internet said that "decompression, the doc directory
Overview:Want to install Ctags, can not be installed. See the foreigner has a log, is in the VI 7.2 version of the operation. Even VI version of the reason, so want to upgrade, online upgrade method write less, and some write too no language, only
using a VIM script, using a template, a few lines of code can be implemented very useful. code in the ~/.VIMRC"Auto Add Pyhton header--startautocmd bufnewfile *.py 0r ~/.vim/vim_template/vim_pyhton_headerautocmd BufNewFile *.py ks |call FileName () |
In the previous section, we learned how to configure the download of the plug-in.
Now, we can go to DIY our IDE and introduce the taglist plug-in and nerdtree plug-in. The final result is:
1. Install the taglist plug-in.
Taglist. For
Vim mode Introduction
Introduction to Vim's three modes
Vim has three working modes: Command mode, insert mode, and baseline mode.
Command mode: Enter the vim command and start Vim to enter the command mode by default. At this time, all keys are
Highlight keywords in VIM
syntax enableHighlighted keywords: usually followed bysyntax onEnable syntax highlighting
syntax clearClear keyword highlighting
When securecrt is not in xterminal mode, try it and it does not work. If it is in
Labels: common Linux Vim commandsZookeeper
First learned vim, see http://blog.csdn.net/u011848617/article/details/12837873
After that, I once lost my skills. After learning again, I found that it is essential to master Common commands. Below are
Common Operations in the Vim Editor
Press I to enter the editing mode
Wq! Force save and exit
Q! Do not save, force exit
! Mandatory
Direction key bit:
K
H j l
Ctrl + f move down one page
Ctrl + B move one page up
Starting with a line 0
$
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