Skip to content

Commit bb20d81

Browse files
committed
mappings: easier time pasing content using <C-v>
1 parent 148f571 commit bb20d81

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

plugin/split-term.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ fun! s:defineMaps()
3737
nnoremap <buffer> <C-Down> <C-w>j
3838
nnoremap <buffer> <C-Up> <C-w>k
3939
nnoremap <buffer> <C-Right> <C-w>l
40+
41+
" Easier time when pasting content in terminal mode with <C-v>
42+
tnoremap <expr> <C-v> '<C-\><C-N>pi'
4043
endfunction
4144

4245
" Opens up a new buffer, either vertical or horizontal. Count can be used to

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ initial user experience within a terminal Buffer is not perfect:
2828
are inactive in favor of the terminal implementation (which is in this case
2929
delete previous word)
3030

31+
- Pasting content in terminal can be troublesome. This plugin makes it a little
32+
bit easier to paste content in terminal mode using `<C-v>`.
33+
3134
This plugin aims to alleviate some of these issues, for a better terminal
3235
buffer experience.
3336

0 commit comments

Comments
 (0)