[vim]fix indent finder on not real file
This commit is contained in:
parent
274a0375b7
commit
6ec7ecf12d
8
.vimrc
8
.vimrc
@ -24,7 +24,7 @@
|
|||||||
" M-left/right horizontal size
|
" M-left/right horizontal size
|
||||||
" M-up/down vertical size
|
" M-up/down vertical size
|
||||||
" gc comment/uncomment
|
" gc comment/uncomment
|
||||||
" C-I indent selection
|
" C-K indent selection
|
||||||
" Use snippets with tab e.g : for <tab> (see .vim/bundle/vim-snippets/snippets for available
|
" Use snippets with tab e.g : for <tab> (see .vim/bundle/vim-snippets/snippets for available
|
||||||
" snippets)
|
" snippets)
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ if has("autocmd")
|
|||||||
" filetype plugin indent on
|
" filetype plugin indent on
|
||||||
" detect indentation see http://www.freehackers.org/Indent_Finder
|
" detect indentation see http://www.freehackers.org/Indent_Finder
|
||||||
if has('python')
|
if has('python')
|
||||||
autocmd BufReadPost * execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output "' . expand('%') . '"' )
|
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output "' . expand('%') . '"' )
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
" auto-indent
|
" auto-indent
|
||||||
@ -169,8 +169,8 @@ else
|
|||||||
"set indentexpr ""
|
"set indentexpr ""
|
||||||
endif
|
endif
|
||||||
|
|
||||||
map <C-I> :pyf ~/.vim/syntax/clang-format.py<CR>
|
map <C-K> :pyf ~/.vim/syntax/clang-format.py<CR>
|
||||||
imap <C-I> <ESC>:pyf ~/.vim/syntax/clang-format.py<CR>i
|
imap <C-K> <ESC>:pyf ~/.vim/syntax/clang-format.py<CR>i
|
||||||
|
|
||||||
""""""""""
|
""""""""""
|
||||||
" SEARCH "
|
" SEARCH "
|
||||||
|
Loading…
Reference in New Issue
Block a user