|
|
@ -88,6 +88,13 @@ function! NewHtml() |
|
|
|
"call NextMark() |
|
|
|
"call NextMark() |
|
|
|
endfunction |
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function! NewLatex() |
|
|
|
|
|
|
|
read ~/Templates/latex |
|
|
|
|
|
|
|
normal! ggdd |
|
|
|
|
|
|
|
setlocal filetype=tex |
|
|
|
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
|
|
" Mappings {{{1 |
|
|
|
" Mappings {{{1 |
|
|
|
" Move lines up/down using arrow keys |
|
|
|
" Move lines up/down using arrow keys |
|
|
|
nnoremap <Down> ddp |
|
|
|
nnoremap <Down> ddp |
|
|
@ -198,7 +205,12 @@ augroup new_html |
|
|
|
autocmd! |
|
|
|
autocmd! |
|
|
|
autocmd BufNew,BufNewFile *.html call NewHtml() |
|
|
|
autocmd BufNew,BufNewFile *.html call NewHtml() |
|
|
|
augroup END |
|
|
|
augroup END |
|
|
|
" |
|
|
|
|
|
|
|
|
|
|
|
augroup new_latex |
|
|
|
|
|
|
|
autocmd! |
|
|
|
|
|
|
|
autocmd BufNew,BufNewFile *.tex,*.latex call NewLatex() |
|
|
|
|
|
|
|
augroup END |
|
|
|
|
|
|
|
|
|
|
|
augroup file_vim |
|
|
|
augroup file_vim |
|
|
|
autocmd! |
|
|
|
autocmd! |
|
|
|
autocmd FileType vim setlocal foldmethod=marker foldenable |
|
|
|
autocmd FileType vim setlocal foldmethod=marker foldenable |
|
|
|