Friday, September 30, 2011

Recursive removal

Remove all files and directories (recursive removal):
rm -rf /tmp/foo
Remove all files from current directory use this command:
rm -f *

Vim configuration

To use vim, you should install vim package:
sudo apt-get install vim

If you prefer to use GUI based vim, you should install vim-gnome package:
sudo apt-get install vim-gnome

vim is a highly configurable editor. A list of files and their locations are given below.

  • ~/.vimrc is the vim configuration file which vim reads on startup
  • ~/.gvimrc is the gvim configuration file which gvim reads on startup. It's best to keep only gui specific settings here, as it will take preference over the settings in your .vimrc file.
  • ~/.vim/ is the directory in which the user can add utility plugins, syntax highlighting plugins, and indent plugins.