aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init/keymaps.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/init/keymaps.vim')
-rw-r--r--vim/init/keymaps.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim
index e4bdfd4..504d071 100644
--- a/vim/init/keymaps.vim
+++ b/vim/init/keymaps.vim
@@ -289,11 +289,11 @@ vnoremap Q <ESC>`<i「<ESC>`>la」<ESC>
289" :Redir !ls -al ........ show the full output of command ':!ls -al' in a scratch window 289" :Redir !ls -al ........ show the full output of command ':!ls -al' in a scratch window
290" 290"
291function! Redir(cmd) 291function! Redir(cmd)
292 for win in range(1, winnr('$')) 292 " for win in range(1, winnr('$'))
293 if getwinvar(win, 'scratch') 293 " if getwinvar(win, 'scratch')
294 execute win . 'windo close' 294 " execute win . 'windo close'
295 endif 295 " endif
296 endfor 296 " endfor
297 if a:cmd =~ '^!' 297 if a:cmd =~ '^!'
298 let output = system(matchstr(a:cmd, '^!\zs.*')) 298 let output = system(matchstr(a:cmd, '^!\zs.*'))
299 else 299 else
@@ -308,7 +308,7 @@ function! Redir(cmd)
308endfunction 308endfunction
309 309
310command! -nargs=1 -complete=command Redir silent call Redir(<q-args>) 310command! -nargs=1 -complete=command Redir silent call Redir(<q-args>)
311nnoremap <leader>rr :Redir 311nnoremap <leader>rr :Redir<space>
312 312
313 313
314"---------------------------------------------------------------------- 314"----------------------------------------------------------------------