Skip to content

Commit 1b0b655

Browse files
committed
Add test.vim
1 parent 10e0fb5 commit 1b0b655

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test.vim

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

0 commit comments

Comments
 (0)