1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
return {
{
'svermeulen/vim-cutlass',
},
{
'svermeulen/vim-subversive',
config = function()
local map = require("helpers.keys").map
-- substitute from yank
map('n', '<Leader>ys', '<plug>(SubversiveSubstitute)', "substitute from yank")
map('n', '<Leader>yss', '<plug>(SubversiveSubstituteLine)', "substitute from yank, line")
map('n', '<Leader>yS', '<plug>(SubversiveSubstituteToEndOfLine)', "substitute from yank, eol")
-- substitute over range
map( { 'n', 'x' }, '<Leader>s', '<plug>(SubversiveSubstituteRange)', "start substitude over range")
map('n', '<Leader>ss', '<plug>(SubversiveSubstituteWordRange)', "start substitude over range")
end
},
{
'svermeulen/vim-yoink',
config = function()
vim.g.yoinkIncludeDeleteOperations = 1
-- fix the Target STRING not available
vim.g.clipboard = {
name = 'xsel_override',
copy = {
['+'] = 'xsel --input --clipboard',
['*'] = 'xsel --input --primary',
},
paste = {
['+'] = 'xsel --output --clipboard',
['*'] = 'xsel --output --primary',
},
cache_enabled = 1,
}
local map = require("helpers.keys").map
-- yoink paste
map('n', 'p', '<Plug>(YoinkPaste_p)')
map('n', 'P', '<Plug>(YoinkPaste_P)')
-- iterate over yank list
map('n', '<c-n>', '<Plug>(YoinkPostPasteSwapBack)')
map('n', '<c-p>', '<Plug>(YoinkPostPasteSwapForward)')
end,
}
}
|