Silence 'q'

This commit is contained in:
Marco Hinz 2013-07-24 00:30:42 +02:00
parent 990c2d2a30
commit 77a14e70a8

View file

@ -77,7 +77,7 @@ function! startify#insane_in_the_membrane() abort
nnoremap <buffer><silent> v :call <SID>set_mark('V')<cr>
nnoremap <buffer> <cr> :call <SID>open_buffers(expand('<cword>'))<cr>
nnoremap <buffer> <2-LeftMouse> :execute 'normal '. matchstr(getline('.'), '\w\+')<cr>
nnoremap <buffer> q
nnoremap <buffer><silent> q
\ :if (len(filter(range(0, bufnr('$')), 'buflisted(v:val)')) > 1) <bar>
\ bd <bar>
\ else <bar>