This link has been bookmarked by 7 people . It was first bookmarked on 21 Jun 2008, by harry palmer.
-
22 Jan 13
-
04 Aug 10
-
08 Sep 09
-
29 May 09
-
07 Jan 09
-
21 Jun 08
harry palmerif v:lang =~ "utf8$" || v:lang =~ "UTF-8$" set fileencodings=utf-8,latin1 endif if v:version >= 700 "The following are a bit slow "for me to enable by default "set cursorline "highlight current line "set cursorcolumn "highlight current column endif "don't be backwards compatible with silly vi options set nocompatible "allow backspacing over everything in insert mode set bs=2 set viminfo='20,\"50 " read/write a .viminfo file, don't store more " than 50 lines of registers set history=50 " keep 50 lines of command line history "Always show cursor position set ruler if has("autocmd") " When editing a file, always jump to the last cursor position autocmd BufReadPost * \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal g'\"" | \ endif endif "This is necessary to allow pasting from outside vim. It turns off auto stuff. "You can tell you are in paste mode when the ruler is not visible set pastetoggle=<F2> "Usually annoys me set nowrap "Usually I don't care about case when searching set ignorecase "Only ignore case when we type lower case when searching set smartcase "I hate noise set visualbell "Show menu with possible completions set wildmenu "Ignore these files when completing names and in Explorer set wildignore=.svn,CVS,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.png,*.xpm,*.gif """""""""""""""""""""""""""""""""""""""""""""""" " Indenting """""""""""""""""""""""""""""""""""""""""""""""" set autoindent set smartindent "The rest deal with whitespace handling and "mainly make sure hardtabs are never entered "as their interpretation is too non standard in my experience set softtabstop=4 " Note if you don't set expandtab, vi will automatically merge " runs of more than tabstop spaces into hardtabs. Clever but " not what I usually want. set expandtab set shiftwidth=4 set shiftround set nojoinspaces """""""""""""""""""""""""""""""""""""""""""""""" " Dark background """""""""""""""""""""""""""""""""""""""""""""""" "I always work on dark terminals set background=dark "Make the completion menus readable h
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.