vim安装插件

来源:互联网 发布:淘宝十大cos店铺 编辑:程序博客网 时间:2024/06/03 21:42

先从www.vim.org/下载想要的插件

再按照对应的步骤进行安装

taglist.vim为例

install details1. Download the taglist.zip file and unzip the files to the $HOME/.vim or the 
    $HOME/vimfiles or the $VIM/vimfiles directory. After this step, you should 
    have the following two files (the directory structure should be preserved): 

         plugin/taglist.vim - main taglist plugin file 
         doc/taglist.txt    - documentation (help) file 

   Refer to the |add-plugin|, |add-global-plugin| and |runtimepath| Vim 
   help pages for more details about installing Vim plugins. 
2. Change to the $HOME/.vim/doc or $HOME/vimfiles/doc or $VIM/vimfiles/doc 
    directory, start Vim and run the ":helptags ." command to process the 
    taglist help file. Without this step, you cannot jump to the taglist help 
    topics. 
3. If the exuberant ctags utility is not present in your PATH, then set the 
    Tlist_Ctags_Cmd variable to point to the location of the exuberant ctags 
    utility (not to the directory) in the .vimrc file. 
4. If you are running a terminal/console version of Vim and the terminal 
    doesn't support changing the window width then set the 
    'Tlist_Inc_Winwidth' variable to 0 in the .vimrc file. 
5. Restart Vim. 
6. You can now use the ":TlistToggle" command to open/close the taglist 
    window. You can use the ":help taglist" command to get more information 
    about using the taglist plugin. 

1.下载taglist.zip 文件,并且解压下来:

解压命令unzip -d taglist taglist_42.zip

2.解压出来两个文件一个是帮助文件,一个是插件

3. 拷贝这两个文件到相应的目录

首先要获取权限: sudo su

拷贝:

cp doc/taglist.txt   /usr/share/vim/vim74/doc/

cp plugin/taglist.vim /usr/share/vim/vim74/plugin/

4.配置和使用,可以直接使用

安装的时候发现需要安装ctags, 直接运行apt-get install ctags

装好之后就可以用了

:TlistToggle 直接运行

 

0 0
原创粉丝点击