Common Vim plug-ins

Source: Internet
Author: User
Tags getscript

Below are some of the useful Vim plug-ins collected and organized by dianhu. Most of the plug-ins have their own detailed instructions. Therefore, we will not detail the installation and use of each plug-in here. With these plug-ins, VIM can become a very powerful platform, happy vimming! For details about the default plug-in installation path, see here.

1 Programming 1.1 tag list

: Official Site

Official description: the "tag list" plugin is a source code browser plugin for vim and provides an overview of the structure of source code files and allows you to efficiently browse through source code files for different programming languages.

DIAN Hu commented: This is a very, very, and very important plug-in. With this plug-in, we can view the list of functions contained in a file in Vim, or a list of methods contained in a class, which provides great convenience for programmers. We recommend that you install it!

Precautions for installation: some built-in ctags feature is too weak. We recommend that you install exuberant ctags. This feature is powerful and can even be supported by embedded Java scripts in HTML, it's really suspicious!

DIAN Hu's personal habits: Dian Hu's habits put the method list on the right side of the screen, so he set it in. vimrc.

Let tlist_use_right_window = 1

In addition, Dian Hu is used to automatically fold the list of methods for files not being edited, which saves some screen space, so it is set in. vimrc.

Let tlist_file_fold_auto_close = 1. 1.2

: Official Site

Official description:

A few of quick commands to swtich between source files and header files quickly.

: A switches to the header file corresponding to the current file being edited (or vise versa)

: As splits and switches

: Av vertical splits and switches

E. g. if you are editing Foo. C and need to edit Foo. h simply execute: A and you will be editting Foo. h, to switch back to foo. c execute: A again.

DIAN Hu commented: at first glance, he thought it was too simple to function and seemed useless. After using this function, I found out how important this function is to a programmer!

1.3 win Manager

: Official Site

Official Description: winmanager is a plugin which implements a classical windows type IDE in vim-6.0. basically, you have the directory tree and the buffer list as 2 windows which stay on the left and the editing is done in a seperate area on the left. people have already made excellent file and buffer explorers seperately and I thought that it might be a cool idea to combine them both. winmanager. vim combines the standard file Explorer which ships with vim 6.0 and a buffer explorer written by Jeff lanzarotta into one package.

Dianhu commented: it is very useful to open a file browser on the screen, so that you can easily select the file to be edited.

By default, winmanager depends on bufexplorer and is downloaded here. If you do not like the bufexplorer plug-in, you can add this command in your. vimrc to disable it:

Let G: winmanagerwindowlayout = "fileexplorer"

In this way, you do not need to download the plug-in.

Wu Hu uses winfileexplorer. vim adds a patch to open the selected file by default. You only need to place the cursor on the file you want to open, then press "S" (note that it is in uppercase ). In this way, you can directly open noatun or other players in gvim without switching to Konqueror.

1.4 echofunc

: Official Site

Official Description: when you type ('after a function name in insert mode, the function declaration will be displayed in the command line automatically. then use Alt +-, ALT + = to cycle between function declarations (if exists ).

DIAN Hu commented: a very useful plug-in, although very small, very simple functions, but very practical, strongly recommended. After the plug-in is installed, when you move the mouse over a flag, a balloon displays the definition of the flag,

Note: The plug-in requires the installation of exuberant ctags. Standard ctags of earlier versions are not supported. We recommend that you create a script like this:

#! /Bin/sh
# Filename: omnictags

Ctags -- C ++-kinds = + p -- fields = + IAS -- extra = + q "$ @"

Then useomnictagsRun the ctags command to generate the tags file to ensure that the tags file contains the required information.

1.5 omnicppcomplete

: Official Site

Official Description: This script is for VIM 7.0 or higher it provides an omnifunc cppcomplete function. You can use the Omni completion (intelliisense) in C ++ files.

This is a full Vim script and you only need a ctags database.

DIAN Hu commented: Although Dian Hu almost does not rely on IDE's Automatic completion, and therefore seldom uses this plug-in, it is still a great plug-in general.

Note: The plug-in requires the installation of exuberant ctags. Standard ctags of earlier versions are not supported. We recommend that you create a script with the preceding echofunc and use that script to generate the tags file.

1.6 pyclewn

: Official Site

Official Description: pyclewn allows using Vim as a front end to a debugger. pyclewn currently supports GDB and PDB.

DIAN Hu commented: from the very beginning, Vim's design philosophy was to keep it simple, not to integrate too many things into vim. While keeping Vim simple, pyclewn introduces some of the functions required for integration debugging to gvim and has a higher degree of integration than clewn, it is very convenient to set breakpoints and view variable values.

1.7 Jad

: None. Copy and paste the code back and save it as $ home/. Vim/plugins/Jad. VIM:

Augr class
Au!
AU bufreadpost, filereadpost *. Class %! Jad-noctor-FF-I-P %
AU bufreadpost, filereadpost *. Class Set readonly
AU bufreadpost, filereadpost *. Class Set Ft = Java
AU bufreadpost, filereadpost *. Class normal Gg = G
AU bufreadpost, filereadpost *. Class Set nomodified
AU bufreadpost, filereadpost *. Class Set nomodifiable
Augr end

Official Description: (none)

DIAN Hu commented: It's a fun plug-in, but it seems to be just fun. After installation, you can double-click to open the. Class file. Vim will automatically call Jad to decompile the file.

Installation notes: Install a JAD file first.

1.8 cscope_maps

: Official Site

Official Description: cscope is a very handy tool, but it's even better when you don't ever have to leave the comfort of your favorite editor (I. e. vim) to use it. fortunately, cscope support has been built into vim.

Dianhu's comment: dianhu currently does not use much of the ctags, and many features are not very familiar. But since everyone said yes, it's just fun.

Installation notes: Install cssag.

1.9 Project

: Official Site

Official Description: You can use this plugin's basic functionality to set up a list of frequently-accessed files for easy navigation. the list of files will be displayed in a window on the left side of the vim window, and you can press <return> or double-click on filenames in the list to open the files. this is similar to how some ides I 've used work. I find this easier to use than having to navigate a directory hierarchy with the file-explorer. it also obviates the need for a buffer Explorer because you have your list of files on the left of the vim window.

DIAN Hu's comment: It's meat-free, and it's delicious.

Installation notes: I have almost never used it, so I have not found any precautions for the moment.

2. Document Writing 2.1 fencview

: Official Site

Official Description: view a multi-byte encoded file in different encodings.

DIAN Hu commented: This is a very important plug-in for Asian users, especially Chinese users! It can automatically recognize the encoding of text files, providing great convenience for users who need to edit different codes.

2.2 Vim latex suite

: Official Site

Official description:

Vim is undoubtedly one of the best editors ever made. Latex is an extremely powerful, intelligent typesetter. vim-latex aims at bringing together the best of both these worlds.

We attempt to provide a comprehensive set of tools to view, edit and compile latex documents ents without needing to ever quit vim. together, they provide tools starting from macros to speed up editing latex documents to compiling Tex files to forward searching. DVI documents.

See the features page for a brief tour of the various features in latex-suite. all these features can be tuned extensively using the specified ded texrc file. the screenshots page shows you how a typical working session with latex-Suite might progress.

Latex-suite is made for VIM versions 6.0 and above. Installation instructions are given in the download page.

DIAN Hu commented: it is a very, very, very good plug-in! If you use Vim to write latex, you have to give it a try. If you do not use Vim to write latex, you have to give it a try. Maybe you will change your mind and use Vim to write latex.

Installation notes: If gvim is used, note that scim may conflict with latex suite. The solution is to remove the scim on the spot function or set the gtk_im_module to scim. (The second solution is recommended compared with the new scim version ).

In addition, to improve work efficiency, we strongly recommend that you configure the positive and reverse search functions of VIM latex.

2.3 sketch

: Official Site

Official Description: Sketch. vim-Line Drawing/painting using the mouse. Based on an idea by Morris.

DIAN Hu commented: It is very fun. Although it is not used many times, once it is used, it will still feel useful.

Note: We recommend that you map call togglesketch () to a command in. vimrc To make it easier:

Command-nargs = 0 togglesketch call togglesketch () 3 daily life 3.1 calendar

: Official Site

Official Description: This script create calender window. This don't use the external program (CAL ).

Dianhu comment: After the installation is complete, use the: Calendar command to open a vertical calendar window, and use the: calendarh command to open a horizontal calendar window. It should be useful.

Installation notes: I personally like to change the diary extension to. txt. The default value is. Cal. Find and replace in calendar. vim. In addition, you can modify the path of the diary in. vimrc. The default value is ~ /Diary.

Let G: calendar_diary = <path> 3.2 vimtips

: Official Site

Official description:

Whenever you start Vim (but no more than daily) the script will open a Help window with a Vim tip. You must download the tips separately, from the official site

After installation, you can get the next tip

: Tipoftheday

DIAN Hu commented: reading one article every day will gradually become a Vim ox.

Installation notes: Not found yet.

3.3 vimball

: Official Site

Official Description: The vimball plugin facilitates creating, extracting, and listing the contents of "vimball" Archives (*. VBA ).

Dianhu comment:

A great plug-in dedicated to installing other plug-ins. The vimball format plug-in is easy to install. You only need to use Vim to open the plug-in and execute it.:so %You do not need to find the installation path of the plug-in on your own, or update helptags all day long. You have decided to change all the plug-ins you have written or modified to the vimball format. More and more plug-ins are currently released in the vimball format. Therefore, you must have a copy of the vimball plug-in! Although Vim has a built-in vimball plug-in, but the version is too low, many vimball cannot be installed normally through it, so we suggest you download the latest version of vimball plug-in on the vim website.

3.4 getlatestscript

: Official Site

Official Description: getlatestvimscripts is a plugin that automates retrieval of the latest versions of the scripts that you yourself use!

Dianhu comment:

A very useful plug-in. With this plug-in, you can always use the freshest plug-in, instead of constantly going to the vim homepage to check the update of the plug-in.

Installation notes:

After installation, create a file~/.vim/GetLatest/GetLatestVimScripts.dat, Write your automatic download configuration file in this format:

Scriptid sourceid filename
--------------------------
<Plugin ID> 0 [: autoinstall:] <plugin File Name>
<Plugin ID> 0 [: autoinstall:] <plugin File Name>
...

Write the download information of one plug-in per line. The plug-in ID isscript_id=The number next to it. The second parameter is the ID of the previous successfully downloaded plug-in file. When this parameter is used for the first time, it is written to 0. After the parameter is successfully used once, it is automatically changed to the file number of the latest version of the plug-in. The third parameter indicates whether the plug-in is automatically installed after the download is successful. If you want to install the plug-in automatically, enter:AutoInstall:. We do not recommend that you use automatic installation for dianhu. Therefore, we recommend that you omit the third parameter. The fourth parameter is the plug-in name, which is generally the same as the file name of the downloaded plug-in. Of course, different files do not have a big impact, this parameter is mainly used to prevent some plug-ins from automatically adding themselves to this list. It is not used to specify the download file name of the plug-in. For more information, see the plug-in documentation. Below are my ownGetLatestVimScripts.datFor your reference:

Scriptid sourceid filename
--------------------------
1066 0 cecutil. VBA
1066 0 cecutil. Vim
1066 7618 cecutil.vba.gz
1075 0 netrw. VBA
1075 0 netrw. Vim
1075 15782 netrw.vba.gz
1440 11032 winmanager.vba.bz2
1502 15362 vimball. Vim
152 3342 showmarks. Vim
1520 7722 omnicppcomplete-0.41.zip
1708 15376 fencview. Vim
1735 15953 echofunc. Vim
1863 0 tlib. Vim
1863 15732 tlib.vba.gz
1926 9111 bbs.vba.gz
2037 0 hookcursormoved. Vim
2037 11543 hookcursormoved.vba.gz
273 7701 taglist_45.zip
31 7218 A. Vim
42 14208 bufexplorer.zip
642 0 getlatestvimscripts. Vim
642 0 getscript. Vim
642 15781 getscript.vba.gz
705 2667 sketch.zip
861 0 Viki. Vim
861 14236 viki.vba.gz

CompiledGetLatestVimScripts.datOpen vim and run:GetLatestVimScriptsTo automatically download the latest plug-in. After the plug-in is downloaded, it is stored in~/.vim/GetLatest/, You can find it and install it. After installation, the installation file can be deleted.

3.5 Viki

The webpage you see is made using Viki. Maybe it is not beautiful, but it is very elegant, and it is very convenient to add information. Viki frees Yunnan Hu from the heavy HTML editing work, so that it has enough courage to re-create its personal homepage. To better describe Viki, Dian Hu separately places the use of this plug-in on another webpage.

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.