Skip to content

Commit

Permalink
Map Q to "quit" netrw
Browse files Browse the repository at this point in the history
Map Q to "quit" netrw by pressing <C-6>

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)
  • Loading branch information
Griffin Smith committed Aug 27, 2015
1 parent ebd2239 commit 11ab7c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/vinegar.vim
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function! s:setup_vinegar() abort
xmap <buffer> ! .!
nnoremap <buffer> <silent> cg :exe 'keepjumps cd ' .<SID>fnameescape(b:netrw_curdir)<CR>
nnoremap <buffer> <silent> cl :exe 'keepjumps lcd '.<SID>fnameescape(b:netrw_curdir)<CR>
nnoremap <buffer> Q <C-6>
exe 'syn match netrwSuffixes =\%(\S\+ \)*\S\+\%('.join(map(split(&suffixes, ','), s:escape), '\|') . '\)[*@]\=\S\@!='
hi def link netrwSuffixes SpecialKey
endfunction

0 comments on commit 11ab7c5

Please sign in to comment.