Skip to content

Commit

Permalink
plugin: use BufRead instead of filetype and fix bundle indentline path.
Browse files Browse the repository at this point in the history
Signed-off-by: lilei (Cloud) <[email protected]>
  • Loading branch information
lilei (Cloud) authored and lilei (Cloud) committed Sep 19, 2018
1 parent d492c95 commit a4f0963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions vim/bundle/ll.vim/plugin/ll.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ function! AutoSetFileHead()
endfunction

if ((filereadable("Kconfig"))&&(filereadable("Makefile")))
if &filetype == 'c' || &filetype == 'cpp'
set tabstop=8
set softtabstop=8
set shiftwidth=8
au! BufRead *.c,*.cpp |
set tabstop=8 |
set softtabstop=8 |
set shiftwidth=8 |
set noexpandtab
endif
endif
2 changes: 1 addition & 1 deletion vim/bundles.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Bundle 'majutsushi/tagbar'
Bundle 'vim-airline/vim-airline'
Bundle 'rking/ag.vim'
Bundle 'ctrlpvim/ctrlp.vim'
Bundle 'Yggdroot/indentLine.vim'
Bundle 'Yggdroot/indentLine'

filetype plugin indent on " required!

0 comments on commit a4f0963

Please sign in to comment.