免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2015年7月3日 星期五

vim plugin management, pathogen


$ git clone https://github.com/tpope/vim-pathogen.git
$ cd vim-pathogen/autoload
$ mkdir -p ~/.vim/autoload ~/.vim/bundle
$ cp pathogen.vim ~/.vim/autoload

Add the following to your ~/.vimrc
-- execute pathogen#infect()
-- syntax on
-- filetype plugin indent on


*** install plugins you want to a subdirectory under ~/.vim/bundle,
and they will be added to the 'runtimepath'

[ex] js syntax plugin for vim
$ git clone https://github.com/pangloss/vim-javascript.git ~/.vim/bundle/vim-javascript

or step by step
$ git clone https://github.com/pangloss/vim-javascript.git
$ cp -r vim-javascript ~/.vim/bundle/


*** vim7.4 problem with js regex
If you are stuck on an older version of Vim 7.4 with no way to update,
then simply perform the following commands to fix your current buffer:

:set regexpengine=1
:syntax enable


[ref]
https://github.com/tpope/vim-pathogen
https://github.com/pangloss/vim-javascript


沒有留言:

張貼留言