-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.vim
20 lines (17 loc) · 593 Bytes
/
test.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
nnoremap ; :
nnoremap : ;
if has('win32') || has('mac')
set clipboard=unnamed
else
set clipboard=unnamed,unnamedplus
endif
execute printf('set runtimepath+=%s', fnamemodify('../denops.vim', ':p'))
execute printf('set runtimepath+=%s', fnamemodify('../denops-startup-recorder.vim', ':p'))
execute printf('set runtimepath+=%s', fnamemodify('.', ':p'))
function! s:capture(expr) abort
let l:result = execute(a:expr)
enew
call append(0, split(l:result, '\n'))
setlocal nomodifiable nomodified buftype=nofile noswapfile
endfunction
command! -nargs=* Capture call s:capture(<q-args>)