Reload snippets after writing a snippet configuration file
This commit is contained in:
parent
8fbbca85f4
commit
29c48d66a9
1 changed files with 8 additions and 2 deletions
10
vimrc
10
vimrc
|
@ -206,9 +206,15 @@ if has('autocmd')
|
|||
\ exe "normal! g`\"" |
|
||||
\ endif
|
||||
|
||||
" Clean whitespace before saving: Python, C, HTML, and Objective-C
|
||||
autocmd BufWritePre *.py,*.h,*.c,*.html,*.m
|
||||
" Clean whitespace before saving code files.
|
||||
autocmd BufWritePre *.py,*.h,*.c,*.html,*.m,*.cc,*.hh,*.mm
|
||||
\ :call <SID>StripTrailingWhitespace()
|
||||
|
||||
" Reload snippets after editing the snippets file. Snippet files are
|
||||
" <filetype>.snippets. Get <filetype> from the filename and reload the
|
||||
" snippets for that type.
|
||||
autocmd BufWritePost *.snippets
|
||||
\ :call ReloadSnippets(expand('%:t:r'))
|
||||
endif
|
||||
|
||||
if has('unix')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue