integrate with tmux, suggested by @packet_plumber

This commit is contained in:
mischa 2019-04-27 09:43:45 +02:00
parent 50439ce092
commit ade8cac0c3
1 changed files with 24 additions and 1 deletions

View File

@ -244,7 +244,7 @@ or
## Enable and use `ex` history
(1) Set `ESC` key to enable history or add to `~/.exrc`:
(1) Set `ESC` key to enable history or add to `~/.nexrc`:
:set cedit=<u>&lt;CTRL-V&gt;&lt;ESC&gt;</u>
@ -255,3 +255,26 @@ or
## Integrate with tmux buffer
(1) cut text from current position to mark 'm' into tmux buffer. Hit undo to put text back into vi buffer.
!'mtmux load-buffer -
(2) paste text from tmux buffer into vi buffer.
:r!tmux show-buffer
(3) Map in ~/.nexrc
map gx !'mtmux load-buffer -<u>&lt;CTRL-V&gt;&lt;ENTER&gt;</u>
map gy !'mtmux load-buffer -<u>&lt;CTRL-V&gt;&lt;ENTER&gt;</u>u
map gp :r!tmux show-buffer<u>&lt;CTRL-V&gt;&lt;ENTER&gt;</u>