Start to move new html functionality to function
This commit is contained in:
parent
a5d24e29d3
commit
cd7086d356
1 changed files with 6 additions and 4 deletions
10
.vimrc
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…
Add table
Add a link
Reference in a new issue