4 ms·
I used to use VIm for years before I got my mac, and I've been moving back to it recently. One thing I'm surprised nobody ever mentions is the ! command. If I
by bphogan 16y ago
I used to use VIm for years before I got my mac, and I've been moving back to it recently.
One thing I'm surprised nobody ever mentions is the ! command.
If I'm working on a file and I want to, say, commit my work, I can do
:!git commit -a -m "committing my changes"
I used to do this a lot when working with Oracle and Bash. It's much quicker than opening another terminal for one-off commands.
- matwood 16y agoYou can always use fugitive which wraps many git commands into vim plugin: http://www.vim.org/scripts/script.php?script_id=2975 http://www.vim.org/scripts/script.php?script_id=2975
- bphogan 16y agoYes, that's really great too... I was just looking for an example that many people could relate to. :)
- jamesbritt 16y agoand :sh drops you into a shell Very handy.