dotfiles/files/vim/.vim/autocmds.vim

20 lines
480 B
VimL

"autocmds
"--------{{{
if has("autocmd")
"global
augroup global
autocmd!
"keep equal proportions when windows resized
autocmd VimResized * wincmd =
"save cursor position in a file
autocmd BufReadPost * if line("'\"") > 1 && line("'\"")
\ <= line("$") | exe "normal! g'\"" | endif
augroup END
augroup emmet_group
autocmd!
autocmd FileType html,css EmmetInstall
augroup END
endif
"}}}