Skip to content

Commit

Permalink
去除默认插件中javascript自动补全, 注释,需要自己开启&安装,并执行enable_others.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Jun 1, 2014
1 parent 57cba7b commit 5241e39
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
19 changes: 19 additions & 0 deletions enable_others.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# refer spf13-vim bootstrap.sh`
BASEDIR=$(dirname $0)
cd $BASEDIR
CURRENT_DIR=`pwd`

lnif() {
if [ -e "$1" ]; then
ln -sf "$1" "$2"
fi
}

# 支持javascript自动补全, 需要安装.vimrc.bundles中 marijnh/tern_for_vim 且使用npm安装之
# for javascript tern
lnif $CURRENT_DIR/others/tern-project $HOME/.tern-project

lnif $HOME/.vim/bundle/tern_for_vim/after/ftplugin/javascript_tern.vim $HOME/.vim/bundle/tern_for_vim/after/ftplugin/html_tern.vim


15 changes: 15 additions & 0 deletions others/tern-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"libs": [
"browser",
"jquery"
],
"loadEagerly": [
"importantfile.js"
],
"plugins": {
"requirejs": {
"baseURL": "./",
"paths": {}
}
}
}
2 changes: 1 addition & 1 deletion vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"

" for javascript 自动补全,配合YCM,需要安装nodejs&npm
Bundle "marijnh/tern_for_vim"
"Bundle "marijnh/tern_for_vim"

"for jquery
Bundle 'nono/jquery.vim'
Expand Down

0 comments on commit 5241e39

Please sign in to comment.