I've been working with Vim on two different machines, one running Ubuntu 10.04 (gVim) and the other Snow Leopard (MacVim). I copied my .vimrc file and .vim folder to both, and noticed a few minor differences. 2 questions:
1 . I used Drew Neil's vimcast on indentation and added the following to my .vimrc:
nmap <D-[> << nmap <D-]> >> vmap <D-[> <gv vmap <D-]> >gv
Cmd+] to indent in/out. In Linux I replaced 'D' with 'C', so that it works with
]. All of that works on both machines, only that on Linux, hitting the Escape key after indenting performs an un-indent action. Any thoughts?
2 . I added some script I found to my .vimrc that enables shifting rows (normal and visual mode) up/down by holding Ctrl and using the up/down keys. It works great on Linux, but doesn't work at all on Mac, and I can't understand why. See my .vimrc file here.