1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00

Use private var

This commit is contained in:
Shidong Wang 2019-01-22 22:20:07 +08:00
parent 8608b42634
commit 6234d7379a

View File

@ -36,8 +36,8 @@ function! SpaceVim#autocmds#init() abort
\ exe "normal! g`\"" |
\ endif
autocmd BufNewFile,BufEnter * set cpoptions+=d " NOTE: ctags find the tags file from the current path instead of the path of currect file
autocmd BufLeave * let b:winview = winsaveview()
autocmd BufEnter * if(exists('b:winview')) | call winrestview(b:winview) | endif
autocmd BufLeave * let b:_winview = winsaveview()
autocmd BufEnter * if(exists('b:_winview')) | call winrestview(b:_winview) | endif
autocmd BufEnter * :syntax sync fromstart " ensure every file does syntax highlighting (full)
autocmd BufNewFile,BufRead *.avs set syntax=avs " for avs syntax file.
autocmd FileType c,cpp,java,javascript set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://