Problema resuelto. Había incluido requiretty
en mi LDAP.
cn=defaults,OU=SUDOers
SudoOption requiretty
cambió a !requiretty
y todo funciona correctamente.
Ahora limitaré !requiretty
solo al usuario afectado.
Вот что я придумал, пока доволен.
" Unlist unchanged buffers if they are hidden
function! BufferUnchanged()
return exists("b:undo_seq_load") && b:undo_seq_load==changenr()
endfunction
function! UnlistUnchangedBuffer()
if BufferUnchanged()
set nobuflisted
endif
endfunction
" Save the undo sequence position on buffer load
autocmd BufReadPost * let b:undo_seq_load=changenr()
autocmd BufWinLeave * call UnlistUnchangedBuffer()