14.06.2014 Views

vim 101 hacks

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

Global Vimrc<br />

Global Vimrc is for sysadmins to add system-wide Vim configuration options<br />

that will be effective for all users of that system. Typically you should be<br />

modifying only the local <strong>vim</strong>rc file.<br />

Location of global <strong>vim</strong>rc file:<br />

OS<br />

UNIX/Linux<br />

Location<br />

$VIM/.<strong>vim</strong>rc<br />

Example: /usr/share/<strong>vim</strong>/.<strong>vim</strong>rc<br />

Windows<br />

$VIM/_<strong>vim</strong>rc<br />

Example: C:\Program Files\Vim\_<strong>vim</strong>rc<br />

Vim Version<br />

The latest stable release of Vim is 7.2 as of the first publishing of this book.<br />

All <strong>hacks</strong> mentioned in this book are tested against the latest stable version.<br />

Execute :version from the Vim editor to identify the version of your Vim<br />

editor.<br />

Vim version on Ubuntu:<br />

$ <strong>vim</strong><br />

:version<br />

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 19 2009<br />

15:27:51)<br />

19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!