Archive for October, 2008

Some vim tips

Wednesday, October 22nd, 2008

svn diff the current windows file
Put this in your vimrc:

map zs :!svn diff % > /tmp/vimsvndiff<CR><CR>
  \ :new<CR>:r /tmp/vimsvndiff<CR>
  \ :set ft=diff<CR>

Say you’re editing a checked out file and what to see what changes you’ve done without leaving your VIM session? Just type zs when in normal mode. This will open the diff in a new split […]


Tweet This Post links powered by Tweet This v1.4.1, a WordPress plugin for Twitter.