mirror of
https://github.com/akelge/zsh
synced 2025-07-04 13:39:07 +00:00
Fixed for Linux/Mac
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
" 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.' : '
|
||||
let append = ' vim: set ts='.&tabstop.' sw='.&shiftwidth.' tw='.&textwidth.' ft='.&filetype.' :'
|
||||
$put =substitute(&commentstring, '%s', append, '')
|
||||
call setpos('.', save_cursor)
|
||||
endfunction
|
||||
|
Reference in New Issue
Block a user