@@ -9,6 +9,13 @@ set selection=inclusive
9
9
set wildmenu
10
10
set mousemodel = popup
11
11
12
+ au FileType php setlocal dict += ~/.vim/dict/php_funclist.dict
13
+ au FileType css setlocal dict += ~/.vim/dict/css.dict
14
+ au FileType c setlocal dict += ~/.vim/dict/c.dict
15
+ au FileType cpp setlocal dict += ~/.vim/dict/cpp.dict
16
+ au FileType scale setlocal dict += ~/.vim/dict/scale.dict
17
+ au FileType javascript setlocal dict += ~/.vim/dict/javascript.dict
18
+
12
19
"
13
20
" syntastic相关
14
21
execute pathogen#infect ()
@@ -102,14 +109,8 @@ autocmd BufNewFile *.cpp,*.[ch],*.sh,*.java,*.py exec ":call SetTitle()"
102
109
func SetTitle ()
103
110
" 如果文件类型为.sh文件
104
111
if &filetype == ' sh'
105
- call setline (1 ," \# ########################################################################" )
106
- call append (line (" ." ), " \# File Name: " .expand (" %" ))
107
- call append (line (" ." )+ 1 , " \# Author: ma6174" )
108
- call append (line (" ." )+ 2 , " \# mail: ma6174@163.com" )
109
- call append (line (" ." )+ 3 , " \# Created Time: " .strftime (" %c" ))
110
- call append (line (" ." )+ 4 , " \# ########################################################################" )
111
- call append (line (" ." )+ 5 , " \# !/bin/bash" )
112
- call append (line (" ." )+ 6 , " " )
112
+ call setline (1 ," \# !/bin/bash" )
113
+ call append (line (" ." ), " " )
113
114
elseif &filetype == ' python'
114
115
call setline (1 ," #!/usr/bin/env python" )
115
116
call append (line (" ." )," # coding=utf-8" )
@@ -143,8 +144,6 @@ endfunc
143
144
autocmd BufNewFile * normal G
144
145
145
146
146
-
147
-
148
147
" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
149
148
" 键盘命令
150
149
" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -434,8 +433,13 @@ Bundle 'python-imports.vim'
434
433
Bundle ' CaptureClipboard'
435
434
Bundle ' ctrlp-modified.vim'
436
435
Bundle ' last_edit_marker.vim'
436
+ Bundle ' synmark.vim'
437
437
" Bundle 'Python-mode-klen'
438
438
Bundle ' SQLComplete.vim'
439
+ Bundle ' Javascript-OmniCompletion-with-YUI-and-j'
440
+ Bundle ' JavaScript-Indent'
441
+ Bundle ' Better-Javascript-Indentation'
442
+ Bundle ' jslint.vim'
439
443
" Bundle 'FredKSchott/CoVim'
440
444
" Bundle 'djangojump'
441
445
" ...
0 commit comments