Start to move new html functionality to function

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

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

Loading…
Cancel
Save