commit - 50439ce092f7a29a333e8be9caa4ad530ce4da5e
commit + ade8cac0c330e614e68c01f0eb742aaadcc7f0ac
blob - c9d2c784a40c7165ff1f68c9757f6ca580700190
blob + 72d3ba3295c6930103b9224fa2424e6769a66517
--- index.md
+++ index.md
## 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>
<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>