Skip to content

Commit 6b3906f

Browse files
committed
refresh totally
1 parent 91e33af commit 6b3906f

27 files changed

+94
-70
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
####快速配置
2-
git clone https://github.com/nullne/vimrc.git ~/.vim_runtime
2+
git clone https://github.com/nullne/vimrc.git ~/.vim
33

44
# 安装基本版
5-
~.vim_runtime/basic_install.sh
5+
~.vim/basic_install.sh
66

77
# 安装终极版
8-
~/.vim_runtime/ultimate_install.sh
8+
~/.vim/ultimate_install.sh

bundle/AutoTag

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/Conque-Shell

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/PHP-Indenting-for-VIm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit b7cdda2996142c6afd8202e3b1c8da97632b6711
1+
Subproject commit bb850cf07fe25693c535cb39b276319818ab0208

bundle/SyntaxAttr.vim

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/The-NERD-Commenter

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/YouCompleteMe

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/ctrlp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit b5d3fe66a58a13d2ff8b6391f4387608496a030f
1+
Subproject commit cd99e43613202d56b2adfc8f9bd216734a9601fd

bundle/custom_vimconf

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/emmet-vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 30f856893579d34531ac256e1f6752d809956025
1+
Subproject commit 52f3af7ca8bc6a9988fcd80c7189591330fbcadd

bundle/gocode

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 352e827a6c4dbe845c3c528c1d03a5bdd18dda62
1+
Subproject commit bb0c614120474a3519c692834afb7b69b097b465

bundle/neocomplcache

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/nerdcommenter

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/nerdtree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 96c07746b46c12d0aca7a5276cc5bd0a260b82fe
1+
Subproject commit d280b15ba9388ab93f3401b26877a13fdb8ed816

bundle/phpcomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 8775df13b80744a83ea33b407354e9d4cea05b7c
1+
Subproject commit f60e66f6f9f32dbb718d58ac9de2bad6bc006dce

bundle/python-mode

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 9c8468e83232c3e45b730d2d0b28d609053dec05
1+
Subproject commit da4bfe5a409cebc4bd79d0d68c2f0a68b2d6c598

bundle/syntastic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 59513edd4784baf3d7350b91be7b739faddaf164
1+
Subproject commit 4486e2ed372df9bd3fef219fc8358cde577d9972

bundle/tComment

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 50a779443604dccd3cbb00171c23bae8981bf56e
1+
Subproject commit e9ee1caada3338387ed4702db463323cfee8e925

bundle/taglist.vim

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/vim-cpp-enhanced-highlight

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 89c3a1bef56576edbb4ba0bde6490808d18f52ca
1+
Subproject commit 31e80e78ea24044f570b1be5d5f71f3e207a17cd

bundle/vim-easymotion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 2a2cf14bc7d0bee7ac759970b17919d4ed076831
1+
Subproject commit 5c6f3cd9a713491e6b32752a05c45198aa91540a

bundle/vim-fugitive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 7c4a90614792cf4b74e0f3386cc6b14046419312
1+
Subproject commit 3439f999b138254e4bb56187fc91f91f545b4b12

bundle/vim-go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit a248fbf42571e4451755ff17df6ddd2be3863ca3
1+
Subproject commit 6efcfb275c8f7779bfc0738da730dfab19f157fe

bundle/vim-surround

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 772ab9587b7d1e2c3bae75395c9123803059ba8a
1+
Subproject commit e49d6c2459e0f5569ff2d533b4df995dd7f98313

bundle/vim-unimpaired

Lines changed: 0 additions & 1 deletion
This file was deleted.

bundle/vundle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit cfd3b2d388a8c2e9903d7a9d80a65539aabfe933
1+
Subproject commit 4984767509e3d05ca051e253c8a8b37de784be45

ultimate.vim

Lines changed: 76 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -39,47 +39,65 @@ else
3939
set rtp+=$HOME/.vim/bundle/vundle/
4040
endif
4141
let g:vundle_default_git_proto = 'git'
42-
call vundle#rc()
42+
43+
call vundle#rc('~/.vim/bundle')
4344

4445
" let Vundle manage Vundle
4546
" required!
4647
Plugin 'gmarik/vundle'
4748
"}}}
4849
" Plugins {{{
4950

50-
Plugin 'xitianfz/custom_vimconf'
51+
" auto complete while searching in vim {{{
5152
Plugin 'SearchComplete'
52-
Plugin 'AutoTag'
53+
" }}}
54+
" auto tag for ctags, but seems that i have not installed ctags {{{
55+
" Plugin 'AutoTag'
56+
" }}}
57+
" magic usage with %, extended for html, xml or languages alike {{{
5358
Plugin 'matchit.zip'
54-
Plugin 'scrooloose/nerdcommenter'
59+
" let loaded_matchit = 1
60+
" }}}
61+
" quick change, delete surroundings: cs'",ds" {{{
5562
Plugin 'tpope/vim-surround'
63+
" }}}
64+
" powerful status line {{{
5665
Plugin 'Lokaltog/vim-powerline'
66+
" beta vertion stil
67+
" Plugin 'powerline/powerline'
68+
" }}}
69+
" PHP {{{
5770
Plugin '2072/PHP-Indenting-for-VIm'
71+
Plugin 'shawncplus/phpcomplete.vim'
72+
"PDV--phpDocumentor-for-Vim
73+
Plugin 'PDV--phpDocumentor-for-Vim'
74+
noremap <leader>cd :call PhpDocSingle()<CR>
75+
" }}}
76+
" highlight nginx conf {{{
5877
Plugin 'vim-scripts/nginx.vim'
78+
" }}}
79+
" nice formater for json {{{
5980
Plugin 'elzr/vim-json'
81+
" }}}
82+
" coffee script {{{
6083
Plugin 'kchmck/vim-coffee-script'
84+
" }}}
85+
" c++ {{{
6186
Plugin 'octol/vim-cpp-enhanced-highlight'
62-
Plugin 'SyntaxAttr.vim'
63-
Plugin 'shawncplus/phpcomplete.vim'
64-
Plugin 'tpope/vim-unimpaired.git'
65-
Plugin 'Valloric/YouCompleteMe'
66-
Plugin 'The-NERD-Commenter'
67-
87+
" }}}
88+
" Plugin 'SyntaxAttr.vim'
89+
" Plugin 'Valloric/YouCompleteMe'
90+
" useless {{{
91+
" Plugin 'tpope/vim-unimpaired.git'
92+
" }}}
6893
" Comment{{{
6994
Plugin 'tComment'
7095
nnoremap // :TComment<CR>
7196
vnoremap // :TComment<CR>
97+
vnoremap /? :TCommentBlock<CR>
7298
" }}}
73-
"PDV--phpDocumentor-for-Vim{{{
74-
Plugin 'PDV--phpDocumentor-for-Vim'
75-
noremap <leader>cd :call PhpDocSingle()<CR>
76-
"}}}
77-
"Conque-Shell{{{
78-
Plugin 'Conque-Shell'
79-
noremap <F3> :ConqueTerm bash
80-
"}}}
8199
"kien/ctrlp.vim{{{
82-
Plugin 'kien/ctrlp.vim'
100+
Plugin 'ctrlpvim/ctrlp.vim'
83101
let g:ctrlp_working_path_mode = 0
84102
let g:ctrlp_follow_symlinks = 1
85103
let g:ctrlp_user_command = "find %s -type f \! \\( -path '*/.svn/*' -or -path '*/.git/*' -or -name '*.rrd' -or -name '*.pyc' -or -name '*.pyo' \\)"
@@ -91,23 +109,23 @@ colo molokai
91109
let g:molokai_original = 1
92110
"}}}
93111
"Shougo/neocomplcache{{{
94-
Plugin 'Shougo/neocomplcache'
95-
set completeopt-=preview
96-
let g:neocomplcache_enable_at_startup = 1
97-
let g:neocomplcache_enable_smart_case = 1
98-
let g:neocomplcache_enable_camel_case_completion = 1
99-
let g:neocomplcache_enable_underbar_completion = 1
100-
let g:neocomplcache_caching_limit_file_size = 50000000
101-
let g:neocomplcache_min_syntax_length = 2
102-
"<CR>: close popup and save indent.
103-
inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
104-
"<TAB>: completion. NO USE with snipmate
105-
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
106-
"<C-h>, <BS>: close popup and delete backword char.
107-
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
108-
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
109-
inoremap <expr><C-Y> neocomplcache#close_popup()
110-
inoremap <expr><C-e> neocomplcache#cancel_popup()
112+
" Plugin 'Shougo/neocomplete.vim'
113+
" set completeopt-=preview
114+
" let g:neocomplcache_enable_at_startup = 1
115+
" let g:neocomplcache_enable_smart_case = 1
116+
" let g:neocomplcache_enable_camel_case_completion = 1
117+
" let g:neocomplcache_enable_underbar_completion = 1
118+
" let g:neocomplcache_caching_limit_file_size = 50000000
119+
" let g:neocomplcache_min_syntax_length = 2
120+
" "<CR>: close popup and save indent.
121+
" inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
122+
" "<TAB>: completion. NO USE with snipmate
123+
" inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
124+
" "<C-h>, <BS>: close popup and delete backword char.
125+
" inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
126+
" inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
127+
" inoremap <expr><C-Y> neocomplcache#close_popup()
128+
" inoremap <expr><C-e> neocomplcache#cancel_popup()
111129
"let g:neocomplcache_enable_auto_select = 1
112130
"}}}
113131
"scrooloose/nerdtree{{{
@@ -128,31 +146,41 @@ let g:syntastic_mode_map = { 'mode': 'active',
128146
\ 'passive_filetypes': ['python'] }
129147
"}}}
130148
"mattn/emmet-vim{{{
149+
" not working
131150
Plugin 'mattn/emmet-vim'
132151
let g:user_zen_settings = { 'lang': "zh-CN" }
133152
"}}}
134-
"taglist{{{
135-
Plugin 'taglist.vim'
136-
noremap <F3> :TlistToggle<cr>
153+
"taglist useless {{{
154+
" Plugin 'taglist.vim'
155+
" noremap <F3> :TlistToggle<cr>
137156
"}}}
138-
"tpope/vim-fugitive{{{
157+
"tpope/vim-fugitive git things{{{
139158
Plugin 'tpope/vim-fugitive'
140159
noremap <leader>g :Gstatus<cr><c-w>_
141160
"}}}
142161
"Lokaltog/vim-easymotion"{{{
143162
Plugin 'Lokaltog/vim-easymotion'
163+
" let g:user_emmet_leader_key='<C-Z>'
144164
let g:EasyMotion_leader_key = ';'
145165
"}}}
146-
"klen/python-mode"{{{
166+
"klen/python-mode" bri {{{
147167
Plugin 'klen/python-mode'
168+
let g:pymode_rope_goto_definition_bind = "<C-]>"
148169
let g:pymode_rope_complete_on_dot = 0
149170
let g:pymode_rope_goto_definition_cmd = 'e'
150171
let g:pymode_lint_cwindow = 0
151172
let g:pymode_lint_ignore = "C901"
173+
let g:pymode_run_bind = '<leader>r'
174+
" highlight ColorColumn ctermbg=235 guibg=#2c2d27
152175
"}}}
153176
"fatih/vim-go"{{{
154177
Plugin 'fatih/vim-go'
178+
" let g:go_fmt_command = "goimports"
155179
let g:go_fmt_autosave = 0
180+
let g:go_fmt_fail_silently = 0
181+
let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']
182+
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
183+
let g:go_list_type = "quickfix"
156184
"}}}
157185
Plugin 'nsf/gocode', {'rtp': 'vim/'}
158186
"}}}
@@ -459,7 +487,7 @@ au BufNewFile,BufRead *.jinja set syntax=htmljinja
459487
au BufNewFile,BufRead *.mako set ft=mako
460488

461489
au FileType python highlight OverLength ctermbg=red ctermfg=white guibg=#592929
462-
" au FileType python match OverLength /\%80v.\+/
490+
au FileType python highlight ColorColumn ctermbg=235 guibg=#2c2d27
463491

464492
""""""""""""""""""""""""""""""
465493
" => C section
@@ -496,6 +524,7 @@ au FileType go nmap <leader>c <Plug>(go-coverage)
496524
au FileType go nmap <leader>r <Plug>(go-run)
497525
au FileType go nmap <leader>b <Plug>(go-build)
498526
au FileType go nmap <Leader>s <Plug>(go-implements)
527+
au FileType go nmap <leader>] <Plug>(go-def-vertical)
499528
au FileType go nmap <F12> :GoFmt <CR>
500529
501530
set foldmethod=syntax "fold based on indent
@@ -510,6 +539,11 @@ autocmd BufWinEnter *.* silent loadview
510539
"""""""""""""""""""""""""""""""
511540
au BufNewFile,BufRead *.as set filetype=actionscript
512541

542+
""""""""""""""""""""""""""""""
543+
" => nginx section
544+
"""""""""""""""""""""""""""""""
545+
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
546+
513547
""""""""""""""""""""""""""""""
514548
" => Vim grep
515549
""""""""""""""""""""""""""""""

0 commit comments

Comments
 (0)