diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-07-03 16:11:32 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-07-03 16:11:32 +0800 |
commit | 31664bc6bd1f666f4ea6f9ae5b583bb8d18b69d2 (patch) | |
tree | 90e7685126b175376f8eecd153fe01653b4beb07 /vim/init/keymaps.vim | |
parent | 0bed649a238b300f7b960d52d161cbb0adc717af (diff) |
Update
Diffstat (limited to 'vim/init/keymaps.vim')
-rw-r--r-- | vim/init/keymaps.vim | 12 |
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 | " |
291 | function! Redir(cmd) | 291 | function! 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) | |||
308 | endfunction | 308 | endfunction |
309 | 309 | ||
310 | command! -nargs=1 -complete=command Redir silent call Redir(<q-args>) | 310 | command! -nargs=1 -complete=command Redir silent call Redir(<q-args>) |
311 | nnoremap <leader>rr :Redir | 311 | nnoremap <leader>rr :Redir<space> |
312 | 312 | ||
313 | 313 | ||
314 | "---------------------------------------------------------------------- | 314 | "---------------------------------------------------------------------- |