Start to move new html functionality to function

master
Jonathan Hodgson 7 years ago
parent a5d24e29d3
commit cd7086d356
  1. 10
      .vimrc

@ -81,6 +81,11 @@ function! NextMark()
execute "startinsert"
endfunction
function! NewHtml()
execute "normal! :read ~/Templates/html"
execute "normal! ggdd"
call NextMark()
endfunction
" Mappings {{{1
" Move lines up/down using arrow keys
@ -177,10 +182,7 @@ augroup END
"
augroup new_html
autocmd!
autocmd BufNew *.html read ~/Templates/html
autocmd BufNew *.html normal! ggdd
"autocmd BufNew *.html call NextMark()
autocmd BufNew *.html setlocal filetype=html
autocmd BufNew *.html call NewHtml()
augroup END
"
augroup file_vim

Loading…
Cancel
Save