LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] VIM stuff

[CLUG] VIM stuff

Donncha O Caoimh donncha.ocaoimh at tradesignals.com
Wed Sep 12 11:22:08 IST 2001


The following text, placed in $HOME/.vimrc makes Vim act a lot nicer
than a default install!

Donncha.

--------------.vimrc--------------
set nocompatible  " Use Vim defaults (much better!)
" use Q for formatting, not ex-mode:
map Q gq
syntax on
" allow backspacing over everything in insert mode
set backspace=2
" Now we set some defaults for the editor
set autoindent    " always set autoindenting on
set smartindent
set expandtab
set shortmess=at    " show short messages
set ttyfast
set shiftwidth=2
 
set textwidth=0      " Don't wrap words by default
set viminfo='20,\"50 " read/write a .viminfo file, don't store more than
         " 50 lines of registers
 
" Suffixes that get lower priority when doing tab completion for
filenames.
" These are files we are not likely to want to edit or read.
set
suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set showcmd    " Show (partial) command in status line.
set showmatch     " Show matching brackets.
set ruler      " Show the line and column numbers of the cursor
" set ignorecase    " Do case insensitive matching
set incsearch     " Incremental search
set laststatus=2




More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell