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
Original article: Install vim and VIM in Ubuntu-kids not reading-iteye Technology website
Install Vim in Ubuntu, VIM in Ubuntu,
Run sudo apt-Get install vim-GTK.
Use Vim to edit files
You can use gvim to open Vim in graphic mode.
Let's take 5 minutes to learn a few Vim shortcuts to improve work efficiency: d
A: insert at the end of the row
J: You can remove line breaks between the current row and the next row, that is, you can continue the next row to the end of the row.
~
Currently, gvim can only be used in windows.Code. Most of the time, we want the editor to be opened to maximize, so that the code can be displayed as much as possible.
Here is a Vim extension (not a plug-in). First download the compressed package
If has ("Syntax ")Syntax onEndif
"If using a dark background within the editing area and syntax highlighting"Turn on this option as well"Set background = dark
"Uncomment the following to have Vim jump to the last position when"Reopening a
Background:
By default, the tab of VIM is indented with 8 spaces. Because I used to use 4 spaces, set tabstop = 4 every time I enter vim, which is too troublesome. So I searched for any solutions. You can modify the vim configuration file once and
1. Insert text
I, of course, is commonly used. But if I is used only, it is too TB. Remember I, O, and,Of course, it is case sensitive. It generally distinguishes the concepts before and after. This is the principle that Vim is designing various
Vimfx, as the name suggests, is a very useful tool found yesterday, VIM for Firefox ,...This extension allows FX to perform common operations very quickly like vim, such as creating a new tab, quickly disabling the tab, fast refreshing, fast
1. install and use ctags in VIM
Http://blog.csdn.net/duguteng/article/details/7412652
2. Install the vim plug-in taglist in Ubuntu
Http://www.lampblog.net/2010/08/ubuntu%E5% AE %89%E8%A3%85vim%E6%8F%92%E4%BB%B6taglist/
3. Vim file browser
Vim creates a full-featured Ruby development environment.
1. autocomplpop -- Automatic prompt
: Http://www.vim.org/scripts/script.php? Script_id = 1, 1879After decompression, there will be three folders in The. Vim directory. In particular, do not
In the past, when setting the VI encoding method, the relevant method was directly found on the internet, mainly to add the following content to the/etc/vimrc file:
Set fileencodings = UTF-8, Latin-1, gb2312, GBK, gb18030Set termencoding = UTF-8Set
From http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-pyclewn/
========================================================== ==============
The help entry for the commands used in this section:
:help pyclewn
In the previous article, we
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
When you use Vim to edit a terminal, by default, the editing interface does not display line numbers, syntax High Brightness Display, smart indentation, and other functions. To better work in Vim, You need to manually set a configuration file:.
File Operations
Vim 【VI]// Open an empty file
Vim [VI] a.txt// Open the.txt file in the current directory. If the file does not exist, create a file named a.txt (specify the storage location as the current directory)
Vim [VI] E: \ a.txt// Open
● Large and lowercase letter Interchange
In normal mode, all ggvggu is capitalized, while all ggvggu is smaller, ggvgg ~ Is case-insensitive.
(To explain, ggvg is all selected. You can select all the other methods, or select a part)
● Remove English
1. Recording
Sometimes, we need to do the same work for each line. For example, when writing a script, to test the program, we sometimes need to comment out many lines, but obviously, if a line adds a # comment to the header, it is obviously
Lecture 1: 1. move the cursor in the screen text. You can use the arrow keys or the hjkl keys.
H (left shift) J (downstream) K (upstream) L (right shift) 2. to enter the vim Editor (from the command line prompt), enter the: Vim file name 3. to exit
I have used Vim configuration for 4-5 years. Very good
Configuration File + plug-in package + tag Script:/files/magic-Chen/vim_config.rar
First, upload the image:
Configuration file:"""""""""""""""""""""""""""""""""
"Peter. Chen
"""""""""""""""
If you do not know the location of the configuration file and script, run the following command in VIM: scriptnames: path/etc/vimrc/usr/share/Vim/vim72/syntax. vim/usr/share/Vim/vim72/syntax/synload. vim/usr/share/Vim/vim72/syntax/syncolor.
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