Sorry for slightly misusing this section as this is not something deep - just a little productivity hack...
As a vim-user for many years I would edit my script in the one true editor and then run it (again and again for development) either in another terminal altogether or would background vim via Ctrl-Z.
But now I have found something more convenient.
If you run vim inside tmux and install the vimux-plugin you can send tmux-commands from within vim.
Now add this to your .vimrc:
If you now open your perl-script in vim within a tmux-session and hit <space> twice (tweak the key-binding to your liking), a new tmux-pane opens and runs your script - without loosing focus in vim - so much nicer...let mapleader=" " map <Leader><space> :VimuxRunCommand("perl " . bufname('%'))
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: developing in vim and tmux
by morgon (Priest) on Apr 21, 2016 at 02:48 UTC | |
Re: developing in vim and tmux
by nysus (Parson) on Apr 20, 2016 at 17:18 UTC | |
Re: developing in vim and tmux
by karlgoethebier (Abbot) on Apr 22, 2016 at 09:21 UTC | |
by morgon (Priest) on Apr 26, 2016 at 02:29 UTC | |
by LanX (Saint) on Apr 26, 2016 at 11:55 UTC | |
by morgon (Priest) on Apr 27, 2016 at 01:56 UTC | |
Re: developing in vim and tmux
by nysus (Parson) on Apr 21, 2016 at 01:22 UTC | |
by morgon (Priest) on Apr 21, 2016 at 02:52 UTC |
Back to
Meditations