in reply to Executing script from Vim, annoying...

mascip:

My procedure is quite similar to flexvault's: By running in a different window, I can execute the script with a simple Alt+Tab, UpArrow, Enter after each modification. Quite handy. Another window open for perldoc & such is also quite useful...

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Executing script from Vim, annoying...

Replies are listed 'Best First'.
Re^2: Executing script from Vim, annoying...
by mascip (Pilgrim) on Jul 20, 2012 at 13:34 UTC

    It's what i used to do to, and i appreciated to replace

    Alt+Tab - Up - Enter (and Alt+Tab to return to editor)
    by simply
    ;r
    Especially because before running the script, if there is any compiling error, it automatically opens a new tab and jumps to the first error. And then i have a shortcut to jump to the next compiling error.
    If there is no compiling error it just runs the script.

    So, if there was a way to keep this feature, without this annoying Vim freeze when executing a script, i would love it.

    And i would really like to avoid having to switch to Emacs, right now.

    Idea for a possible solution : if there was a terminal out there, which can be given commands through another terminal's commands, then i could "drive" it from Vim. That would do the trick. Is such a set up possible ?

    There must be a simple way...