User login


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

(domain not renewed as of 2010 Nov. 4 - )

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

See also:

Syndicate content