1
0
mirror of https://github.com/akelge/vim synced 2025-12-14 22:35:13 +00:00

migration bro

This commit is contained in:
Andrea Mistrali
2015-03-13 16:06:15 +01:00
parent 0930fdeda2
commit fda55f2e8b
160 changed files with 0 additions and 2465 deletions

16
plugin/myFunx.vim Normal file
View File

@ -0,0 +1,16 @@
" Append modeline after last line in buffer.
" Use substitute() (not printf()) to handle '%%s' modeline in LaTeX files.
function! AppendModeline()
let save_cursor = getpos('.')
let append = ' vim: set ts='.&tabstop.' sw='.&shiftwidth.' tw='.&textwidth.' ft='.&filetype.' :'
$put =substitute(&commentstring, '%s', append, '')
call setpos('.', save_cursor)
endfunction
" Define as a command
command! -nargs=0 -bar AppendModeline call AppendModeline()
" Map to <Leader>ml
nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
" vim: set ts=4 sw=4 tw=78 ft=vim :