User login

vim

Sudo save a file from within Vim

In Vim, save a file you edited in vim without the needed permissions

:w !sudo tee %

Include another file in your Vim configuration file

To store your Vim settings in a different file (Agaric does this so that we can put all our "custom home" configuration type files easily in version control together) use the source command.

In .vimrc to include other file:

source /path/to/file/morvimconfig

In ben-agaric's case, the entire .vimrc file is only:

source /home/ben/customhome/.vimrc-agaric

Vim as a PHP IDE

See
(domain not renewed as of 2010 Nov. 4 - phpslacker.com/2009/02/05/vim-tips-for-php-programmers/ )

Once it's set up right, you can use :make % to check your PHP syntax before loading the code in a browser.

See also: http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html

Syndicate content