All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 " Close the ALEPreviewWindow window with the q key.
2 noremap <buffer> q :q!<CR>
3 " Disable some keybinds for the selection window.
4 noremap <buffer> v <NOP>
5 noremap <buffer> i <NOP>
6 noremap <buffer> I <NOP>
7 noremap <buffer> <C-q> <NOP>
8 noremap <buffer> <C-v> <NOP>
9 noremap <buffer> <S-v> <NOP>
10 noremap <buffer> a <NOP>
11 noremap <buffer> A <NOP>
12 noremap <buffer> o <NOP>
13 noremap <buffer> O <NOP>
14 " Keybinds for opening selection items.
15 noremap <buffer> <CR> :call ale#preview#OpenSelection()<CR>
16 noremap <buffer> t :call ale#preview#OpenSelectionInTab()<CR>
18 let b:undo_ftplugin = get(b:, 'undo_ftplugin', 'execute')
19 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> q"'
20 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> v"'
21 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> i"'
22 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> I"'
23 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> <C-q>"'
24 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> <C-v>"'
25 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> <S-v>"'
26 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> a"'
27 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> A"'
28 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> o"'
29 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> O"'
30 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> <CR>"'
31 let b:undo_ftplugin .= ' | execute "silent! unmap <buffer> t"'