integrate with tmux, suggested by @packet_plumber
This commit is contained in:
parent
50439ce092
commit
ade8cac0c3
25
index.md
25
index.md
|
@ -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`:
|
||||
|
||||
<pre>
|
||||
:set cedit=<u><CTRL-V><ESC></u>
|
||||
|
@ -255,3 +255,26 @@ or
|
|||
<pre>
|
||||
:<u><ESC></u>
|
||||
</pre>
|
||||
|
||||
|
||||
## 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.
|
||||
|
||||
<pre>
|
||||
!'mtmux load-buffer -
|
||||
</pre>
|
||||
|
||||
(2) paste text from tmux buffer into vi buffer.
|
||||
|
||||
<pre>
|
||||
:r!tmux show-buffer
|
||||
</pre>
|
||||
|
||||
(3) Map in ~/.nexrc
|
||||
|
||||
<pre>
|
||||
map gx !'mtmux load-buffer -<u><CTRL-V><ENTER></u>
|
||||
map gy !'mtmux load-buffer -<u><CTRL-V><ENTER></u>u
|
||||
map gp :r!tmux show-buffer<u><CTRL-V><ENTER></u>
|
||||
</pre>
|
||||
|
|
Loading…
Reference in New Issue