Blame
|
1 | # 2008-09-07 Just Found This Handy Vi Tip |
||||||
| 2 | ||||||||
| 3 | Sick of `:wq`ing your shell/perl script in [vi] just to run it and then opening it again to fix a bug? |
|||||||
| 4 | ||||||||
| 5 | You can run it straight from vi by writing to the shell escape: |
|||||||
| 6 | ||||||||
| 7 | ``` |
|||||||
| 8 | :w !ksh |
|||||||
| 9 | :w !perl |
|||||||
| 10 | ``` |
|||||||
| 11 | etc... |
|||||||
| 12 | ||||||||
| 13 | Handy because it will leave you on the line that you are currently working on. |
|||||||
| 14 | ||||||||
| 15 | *pip pip!* |
|||||||
| 16 | ||||||||
| 17 | [vi]: http://en.wikipedia.org/wiki/Vi |
|||||||