Vim uses the termencoding option to control the encoding during output. This option is empty by default, that is, no conversion is performed,This led me to open the UTF-8 file under the GB code Terminal, although can identify, the display is garbled.
From: http://blog.csdn.net/hnney/article/details/5892977
1. Screen
Create a. screenrc file under $ home /.
Add the following statements to the display window status in the last line:
Startup_message off
Hardstatus alwayslastline
Hardstatus
-- Kong Jianjun (kongove. cn)2008.11.15
Code Reading tools
For those who are learning the Linux kernel, reading the source code is particularly important.Because all design ideas and internal mechanisms are
It is implemented in the form of code, and
[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
[Translation]
"/Zs and/ze RegEx delimiters: H // Zs
"/ZsAnd/zeRegular Expression Symbol: H // Zs
/] */ze>: Search for tag contents, ignoring chevrons
Search XMLMarked content, ignore angle brackets
[Annotation]
: Help // Zs
: Help // ze
This
Neonlight@live.cn published, reproduced please indicate the source.
Common cmds:% Jump to matching brackets[[Jump to the beginning of the code block (but the '{' in the code block must be a separate line)GD jump to the definition of a local variable'
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
This figure draws on the basic movement methods in Vim. To facilitate programmer, it lists many buttons that can only be used by programming. In addition to this, there are actually some useful things that I did not expect to draw well (such as tags,
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
Use Vim to replace SourceInsight (ctags + taglist +)
Use Vim to replace SourceInsight (ctags + taglist +)VImTags uses the example of CTAG Protocol If you do not study it, you can run the
Method 1:1. Backup vimdir/syntax/C. Vim
2. Download C. Vim
And replace the existing vimdir/syntax/C. Vim
Method 2:1. Backup vimdir/syntax/C. Vim2. Open the vimdir/syntax/C. Vim file and search for the following locations:Code:"A bunch of useful
Vim word highlightingSourceInsight supports word highlighting. I always think it is easier to read code. Today, I checked whether vim has related plug-ins. It is found that there are similar functions. Www.2cto.com
Http://www.vim.org/scripts/script.php? Script_id = 40
Its easy to start and stop DrawIt: use
\ Di to start DrawIt and\ Ds to stop DrawIt.
Supported Features move and draw left move and draw right, inserting lines/space as needed move and draw up,
2011-11-17
Vim basic configurationset nocompatible set columns=80 set tabstop=4 set ruler set expandtab set number set ignorecase set wrapmargin=15 set cindent set shiftwidth=4 syntax onCode coloring and display of line numbers:
The vim tab key
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
Development tool combination-Vim + ctags + taglist
After reading the article about vim on top of the C-version flw boss. you have nothing to worry about. these configuration methods may already exist on the Internet, but I am also too reluctant to
The main use of pydiction, winManager, taglist, ctags does not seem to work, and more complex is not installed. In fact, VIM is also quite useful, hoping to have more powerful commands!
1 set number 2 colo darkblue 3 set nocp 4 set ru 5 set hls 6
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