From 87ad4dfbe78665029521667afb2f159f3865523b Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 22 Apr 2018 15:53:01 +0100 Subject: Implement a preview window for selecting locations to open --- ftplugin/ale-preview-selection.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ftplugin/ale-preview-selection.vim (limited to 'ftplugin/ale-preview-selection.vim') diff --git a/ftplugin/ale-preview-selection.vim b/ftplugin/ale-preview-selection.vim new file mode 100644 index 00000000..d77b4f98 --- /dev/null +++ b/ftplugin/ale-preview-selection.vim @@ -0,0 +1,16 @@ +" Close the ALEPreviewWindow window with the q key. +noremap q :q! +" Disable some keybinds for the selection window. +noremap v +noremap i +noremap I +noremap +noremap +noremap +noremap a +noremap A +noremap o +noremap O +" Keybinds for opening selection items. +noremap :call ale#preview#OpenSelectionInBuffer() +noremap t :call ale#preview#OpenSelectionInTab() -- cgit v1.2.3