Always avoid coding problems this pit, when creating a text file, uses the Utf-8 encoding.
But put on Linux, vim Open or garbled.
Cat looks at the content is normal.
So my code should be correct, but Vim does not use Utf-8 to open the text.
Add
1. General mode
In general mode, you can copy and paste the newly opened interface such as:
X,x x to delete one character backwards, X to delete a character previouslyNX (n represents number) Delete n characters backwardsDD Delete when forwardD
Http://www.cnblogs.com/end/archive/2012/06/01/2531147.html
Vim as one of the best text editors, using vim to write documents, writing code is very pleasant things. Whenever you learn a new function of VIM, you will greatly improve your work
C.vim is a vim for the development of C + + Plug-ins, official website, Links: Vim basic Plug-in installation step 1. Download installation package (cvim.zip), download directly from the official web, I download here is the current version 6.12.
Vim configuration and easy-to-use methods.
Install vim and tags using the source link address: http://blog.csdn.net/shaohuazuo/article/details/46745209 blog
VIMRC configuration file can refer to the following address: http://blog.csdn.net/shaohuazuo/
Cscope recommended mappings in the documentation:
Nmap s:cs Find S =expand ("")
What is the meaning of =. An assignment statement. is the meaning of inserting a register value, = is the meaning of the expression register. So the sentence is
Use of Vim1 command mode, edit mode, last line mode, command mode is the broker of edit mode and last line mode.Vim Common commandsI: Enter edit modeYY: Copy cursor row copy multiple lines: Digital +yyP: Paste, paste multiple times: digital +pDD
Button operation:
Add Note: Ctrl + V to enter the column editing mode. Move the cursor down or up, mark the beginning of the line to be annotated, and press I in uppercase, then insert the annotator, such as "#", and then press ESC. All of them
1. Installation
: Http://ctags.sourceforge.net
Run the following command to decompress the package:
$ Tar-xzvf ctags-5.8.tar.gz // unzip $ CD ctags-5.8 // enter the ctags-5.8 directory $./configure // configure $ make // compile $ sudo make
Snippetemu is recommended in shuimu vim, and MS is a tool similar to visual assist in VC ++.The download URL is as follows:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1318You must download both snippy_plugin.vba and snippy_bundles.vba
Transferred from: http://blog.sina.com.cn/s/blog_98cf2a6f01015b220.html, thank you !!1. Three Modes of survival: insert mode, command mode, regular mode I -- move the cursor to insert mode A -- move the cursor to insert mode ESC -- return to normal
Where is the configuration file?
When using vim, you need to know a series of configuration files. The location of these configuration files depends on the installation location of vim and the operating system you are using.
Generally, there are
A good tool can greatly improve the efficiency when reading the source code. Here, I will not talk much about the tool, VIM + ctags + cs.pdf. Here I mainly want to introduce some of the usage skills of this tool combination. I have found it on the
Don't try to write down a lot at a time
Master the two or three skills you need most at a time.
Then I am familiar with it. Well, one day, I suddenly found that you are a Vim guru.
-----------------------------------------------
Preface:
Vim is a
VIM + cssag + ctags + tags read source code by: Xu
Zhenwen
The Linux Source Code provides the make command to create a cssag index file and a tags file.I. Software Installation
Install cscope first:
sudo apt-get install cscope
After installing ctags:
Vim played in windows. after moving to Ubuntu, VI is very awkward (especially the items on the clipboard cannot be paste in vi ...) and so on... I plan to convert VI to VIM, which may be much better. don't talk nonsense, start action. it is
Vim's learning curve is quite large (see the learning curve of various text editors). Therefore, if you see a lot of VIM command classification at the beginning, you will lose interest in this editor. The following article is translated from
Yum (yellowdog Updater modified) is a set of Linux software for searching, installing, updating, and deleting programs. It runs on a Linux release version compatible with the RPM package, such as RedHat,Fedora, Suse,Centos, mandriva.
Today, the
In vim, the purpose is to quickly locate and improve efficiency.
1. Mark the command
Use help mark in VIM command line mode to view the help manual of the Mark command
2. Mark
Use 26 tokens (A to Z) in the text ). These tags are invisible, but
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