add b:undo_ftplugin (#4625)

This commit is contained in:
D. Ben Knoble
2023-11-19 04:13:56 -05:00
committed by GitHub
parent 5cddc4c8e1
commit 1ccd99e113
4 changed files with 27 additions and 0 deletions

View File

@@ -14,3 +14,9 @@ endfunction
" Press space to open :help for an ALE Variable
nnoremap <buffer> <silent> <space> :call ALEInfoOpenHelp()<CR>
let b:undo_ftplugin = get(b:, 'undo_ftplugin', 'execute')
let b:undo_ftplugin .= ' | setlocal synmaxcol<'
let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> q"'
let b:undo_ftplugin .= ' | execute "silent! nunmap <buffer> <space>"'
let b:undo_ftplugin .= ' | delfunction! ALEInfoOpenHelp'