parent
2d9291a067
commit
e43aabaf4e
1 changed files with 3 additions and 2 deletions
|
@ -64,6 +64,7 @@ Bundle 'tpope/vim-surround'
|
|||
|
||||
autocmd BufEnter * match ExtraWhitespace /\s\+$/
|
||||
autocmd BufNewFile,BufRead *.less set filetype=less
|
||||
autocmd BufRead,BufNewFile GHI_ISSUE set filetype=issue
|
||||
autocmd BufRead,BufNewFile nginx.conf set filetype=nginx
|
||||
autocmd ColorScheme * highlight ExtraWhitespace guibg=red
|
||||
autocmd FileType c set omnifunc=ccomplete#CompleteCpp
|
||||
|
@ -72,7 +73,7 @@ autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
|
|||
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
|
||||
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
|
||||
autocmd FileType python set omnifunc=pythoncomplete#Complete
|
||||
autocmd FileType svn,*commit* setlocal spell
|
||||
autocmd FileType svn,*commit*,*issue* setlocal spell
|
||||
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
|
||||
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
|
||||
autocmd InsertLeave * match ExtraWhiteSpace /\s\+$/
|
||||
|
@ -141,7 +142,7 @@ vnoremap # :<C-u>call <SID>VSetSearch()<CR>??<CR>
|
|||
" Jumps to last cursor position except on commit messages
|
||||
autocmd BufReadPost * call SetCursorPosition()
|
||||
function! SetCursorPosition()
|
||||
if &filetype !~ 'svn\|commit\c'
|
||||
if &filetype !~ 'svn\|commit\|issue\c'
|
||||
if line("'\"") > 0 && line("'\"") <= line("$")
|
||||
exe "normal! g`\""
|
||||
normal! zz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue