commit ade8cac0c330e614e68c01f0eb742aaadcc7f0ac from: mischa date: Sat Apr 27 07:43:45 2019 UTC integrate with tmux, suggested by @packet_plumber commit - 50439ce092f7a29a333e8be9caa4ad530ce4da5e commit + ade8cac0c330e614e68c01f0eb742aaadcc7f0ac blob - c9d2c784a40c7165ff1f68c9757f6ca580700190 blob + 72d3ba3295c6930103b9224fa2424e6769a66517 --- index.md +++ 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`:
 :set cedit=<CTRL-V><ESC>
@@ -254,4 +254,27 @@ or
 
 
 :<ESC>
+
+ + +## 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 -<CTRL-V><ENTER>
+map gy !'mtmux load-buffer -<CTRL-V><ENTER>u
+map gp :r!tmux show-buffer<CTRL-V><ENTER>
+