Vim in win encountered Chinese characters garbled long known, this thought through the following settings can solve garbled problemSet Encoding=utf-8Set Fileencoding=utf-8,chineseThis setting is able to solve the source code files in the Chinese
View help input: tab help, which can be opened on a new tab. jump to a topic: place the cursor over a label (e.g. | bars |) and press Ctrl-] to jump back: Type A CTRL-T or CTRL-O (repeat to continue backward) copying and deleting a Text object is a
Go to] Notes for installing Vim on the AIX operating system
Http://blog.csdn.net/chinainvent/archive/2008/07/26/2716820.aspx
In my current jobSecurecrt, Log onIBMOfAIX UnixProgramming the operating system. The two servers used for
1. Installation Steps
1) download the installation package [1]
2) copy the plug-in to the plugin directory.
My options are:/usr/share/Vim/vim73/plugin.
3) edit the vimrc File
My directory is at:/etc/vimrc
"F4 quick format JSCode
Nnoremap
Vim is a powerful editor that supports plug-ins. whether your system is Linux, UNIX, Mac, or windows, you can select it to edit files or perform engineering-level coding. If we can use Vim well, not only can the programming efficiency be greatly
As the saying goes, "to do good things, you must first sharpen the tool." Good development tools can help us greatly improve development efficiency. I have been using Vim to write c ++ in Linux for some time. Here I want to share some of the vim
Original article address:
Http://hqlong.com/2010/01/1254.html
Vim tips: Collapse shortcuts
I used it quite well before. I don't need it for a while, and I forgot the shortcut keys. I have to read the manual again. I have to sort it out
ArticleDirectory
1. Using Ctrl-x Ctrl-N to automatically complete word
2. CTRL-x Ctrl-L to automatically complete the line
3. the Ctrl-x Ctrl-F file name is automatically completed.
4. Thesaurus word completion
5. Use Ctrl-x
ArticleDirectory
Pathogen
Nerdtree
Command-T
Powerline
Common plug-ins
Vim has formed its own ecological environment because it has an open plug-in system. To improve development efficiency, developers have compiled tens of
1. Let's take a look.
2. configuration method
.
If the following effect is not specifiedCodePrompt shortcut key (such as Ctrl + p), to see the effect, do not really want visual assist.
1.1 code prompts for structure struct and enum
"Configuration file for vimset modelines = 0" CVE-2007-2438 "normally we use vim-extensions. if you want true vi-compatibility "Remove change the following statementsset nocompatible" use Vim defaults instead of 100% VI compatibilityset backspace = 2
Why use Vim?
1. He is a text editor, not IDE, so he is fast, light, and efficient.
2. Don't want to move the mouse because it is too far away from the keyboard.
3. Check out the hackers in the movie. Not all of them are hitting the keyboard. How
1. First install the plug-in Manager Pathogen
Install~/.vim/autoload/pathogen.vim
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vimCreate a. vimrc file in the centos home directory and add:
Vim auto-completion plug-in-youcompleteme
Preface
Vim is called the editor God mostly thanks to its rich DIY flexible plug-in functions (for example, youcompleteme, the magical Code Completion plug-in under Vim ), most of the users who use Vim feel
Vim provides four folding modes: indent, Tag, syntax, and expression. Folding by indentation is not suitable for python, but for C #, if you do not set some settings, the folding effect is still unsatisfactory, so I modified the syntax file of the C
Since VIM has been used for a long time, it has never been thought of as convenient and fast as VIM.
I thought for a moment, probably because I have always been dependent on the VIM editing mode.
This is no different from using other simple editors.
Nj/k/h/l
[Crtl] + f
[Ctrl] + B
0/Home
$/End
G
NG
Gg
N [Enter]
/Word
N
To continue searching for the next string named word.
N
: N1, n2s/word1/word2/g
For example: 1,100 s/man/MAN/g, search for man between 1 and 100 and replace it with
Add comments to multiple vim lines
Button operation:
Add comments: Ctrl + v to enter the column editing mode, move the cursor down or up, mark the beginning of the row to be commented, and press the uppercase I, then insert the comments, for
Why is it difficult to use vim's forced writing?
A beginner in Linux usually installs a graphical interface. When a graphical interface is installed, a common user is created, and this common user is usually used to log on to the system (note: this
Today, we have been working on the vim plug-in for a long time, and finally found that online installation is the most time-consuming ~~
1. Install taglist-browse source code
The source code browser plug-in taglist can list functions, struct, and
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