From f5f53247b47d254c07153370428b44e0ebcd903d Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Thu, 27 Aug 2015 12:33:55 -0400 Subject: [PATCH] Map Q to "quit" netrw Map Q to "quit" netrw using `:Rexplore` Ex mode is nice, but I don't feel like I'm going to need it in a file browser ever (since I won't really be editing the file) --- plugin/vinegar.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/vinegar.vim b/plugin/vinegar.vim index 5d61296..d5a1789 100644 --- a/plugin/vinegar.vim +++ b/plugin/vinegar.vim @@ -89,6 +89,7 @@ function! s:setup_vinegar() abort xmap ! .! nnoremap cg :exe 'keepjumps cd ' .fnameescape(b:netrw_curdir) nnoremap cl :exe 'keepjumps lcd '.fnameescape(b:netrw_curdir) + nnoremap Q :Rexplore exe 'syn match netrwSuffixes =\%(\S\+ \)*\S\+\%('.join(map(split(&suffixes, ','), s:escape), '\|') . '\)[*@]\=\S\@!=' hi def link netrwSuffixes SpecialKey endfunction