Commit d2fe13
2026-04-23 02:43:17 David Marsh: -/-| /dev/null .. blog/2008/2008-09-07 just found this handy vi tip.md | |
| @@ 0,0 1,17 @@ | |
| + | # 2008-09-07 Just Found This Handy Vi Tip |
| + | |
| + | Sick of `:wq`ing your shell/perl script in [vi] just to run it and then opening it again to fix a bug? |
| + | |
| + | You can run it straight from vi by writing to the shell escape: |
| + | |
| + | ``` |
| + | :w !ksh |
| + | :w !perl |
| + | ``` |
| + | etc... |
| + | |
| + | Handy because it will leave you on the line that you are currently working on. |
| + | |
| + | *pip pip!* |
| + | |
| + | [vi]: http://en.wikipedia.org/wiki/Vi |