1. First install the common Vim
Pkg_add Vim
2. The Vim plug-ins on the server are not rich enough. I have provided the plug-in package here and decompress it to the Linux directory.
/Files/kungfupanda/vimsettings.rar
3. Copy pluin (in the
1 download: http://www.vim.org/scripts/script.php? Script_id = 1, 10262. decompress the file visualmark. Vim to the/usr/share/Vim/vim70/plugin folder.3. Help;4 usage:
This "bookmark" has a major disadvantage: invisible.The visual mark plug-in I
I am in ~ /. The color topic used in vimrc is desert. Vim, but the # include and other pre-processed characters on my computer are always dazzling and cannot be clearly seen. So I want to modify desert. Vim. The steps are as follows:
1. Put desert.
Sometimes when a file is uploaded to a Linux server, only one line is displayed after it is opened with vim, and "^ m" is displayed in the place where the original file is wrapped. There are many solutions to this problem, here I will introduce a
1. Configuration File Location/etc/Vim/vimrc
2. Change the configuration
set nocompatible does not use the VI default keyboard layout. If not configured, in edit mode, press the arrow key to enter characters. set nu display row number set
Bufpos Plugin:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1836
Buftabs plug-in:
Http://micampe.it/files/buftabs.vim
This is the buftabs version that the author of bufpos has made minor changes.
Put the downloaded bufpos. vim and
Vim is a tool that can't be used without getting familiar with it. I have been using it for a period of time. I have been forced to go from the beginning to the end, and I have been happy for a long journey. After a while, the familiar functions
The help entry for the commands used in this section: : Help helptags
: Help taglist.txt
Use the following command to generate a Help Tag
: Helptags ~ /. Vim/doc
The following describes commonTaglistConfiguration options, you can configure
1. Convert Enum in C language to Java constant:
G/^ \ s * $/dG/^/S // public static final int/
Leti = 1000G/,/S // \ = '. I.'; '/| let I = I + 1
2. # define macro in C to convert Java constants:
% S/^ # define [A-Z, 0-9, _] * \ Zs \ s \ ze/=/
Author: laruence ()
Address: http://www.laruence.com/2010/08/18/1718.html
Reprinted please indicate the source
Let's talk about it first. Vim has released 7.3 ..
When looking at the vim plug-in, I found an interesting application (not a
1. Enter Vim to automatically open winmanager
This function is optional and can be set in vimrc:
"Winmanager is automatically enabled when you enter vim.
Let G: autoopenwinmanager = 1You can enable winmanager automatically.In winmanager. Vim,
Install python. Vim syntax highlighting
Copy python. Vim ~ /. Vim/afer/ftplugin
In ~ /. Add configuration in vimrcSet autoindent "same level indent
Set smartindent "Next level indent
Set expandtab
Set tabstop = 4
Set shiftwidth = 4
Set softtabstop
In vim, I introduced the concept of mode in vim and how to move the cursor in VIM in multiple ways. This section describes copying, cutting, pasting, undo/Redo, and search operations. Let's get started!
1. Copy, cut and paste
Copy, cut, and paste
VIM + sourcenav
Software Version:Ubuntu10.04Linux version 2.6.32-42-genericVim-VI improved 7.2Sourcenav-6.0
Directory:
1. Introduction2. Install sourcenav3. Use Vim4. References
1. Introduction
Although Vim also has many resource/project management
H. Move a character to the left.J move a character downward with the cursorK move the cursor one character upL move the cursor one character to the rightW: Move a word to the back ~ You need to use this word before you can understand it.If you want
1. display the tab key
When the file contains the tab key, you cannot see it. To display it:
: Set list
Now the tab key is displayed as ^ I, and $ is displayed at the end of each line, so that you can find the spaces that may be ignored.One
The following command will sort all lines and remove duplicates (Keeping Unique lines ):
:sort utips: here "u" maybe short of the word "unique" I guess:)
If you need more control, here are some alternatives.
There are two versions, the first
There are three programming tools in the world: Emacs, Vim, and various ides. Over the past 10 years, the IDE programming environment has gained considerable market position thanks to the great promotion of funds. However, the historical development
I often press the "Q" key or something, and the annoying "Recording" is displayed in
Below the editor. Sometimes I am crazy when I want to exit the editor.
Today, I am free to study what the recording is...It was used to record the buttons, and then
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