2012-01-06 10:56:50 +01:00
|
|
|
" I probably don't need to have Vi compatibility.
|
|
|
|
set nocompatible
|
|
|
|
|
2011-12-31 20:40:19 +01:00
|
|
|
" Copied from /usr/local/vim/vimrc of Debian.
|
|
|
|
|
2012-12-21 12:08:42 +01:00
|
|
|
" Show syntax colours
|
2011-12-31 20:40:19 +01:00
|
|
|
syntax on
|
|
|
|
|
|
|
|
set showcmd " Show (partial) command in status line.
|
|
|
|
set showmatch " Show matching brackets.
|
|
|
|
set ignorecase " Do case insensitive matching
|
2012-01-06 10:56:50 +01:00
|
|
|
set smartcase " Do smart case matching
|
2011-12-31 20:40:19 +01:00
|
|
|
"set incsearch " Incremental search
|
|
|
|
set autowrite " Automatically save before commands like :next and :make
|
2012-01-06 10:56:50 +01:00
|
|
|
set hidden " Hide buffers when they are abandoned
|
2012-01-06 19:25:25 +01:00
|
|
|
"set mouse=a " Enable mouse usage (all modes)
|
2011-12-31 20:40:19 +01:00
|
|
|
|
|
|
|
" Source a global configuration file if available
|
|
|
|
if filereadable("/etc/vim/vimrc.local")
|
|
|
|
source /etc/vim/vimrc.local
|
|
|
|
endif
|
|
|
|
|
2012-01-01 11:11:15 +01:00
|
|
|
" end of copied from /usr/local/vim/vimrc
|
|
|
|
|
2011-12-31 20:40:19 +01:00
|
|
|
" Copied from nyuszika7h http://nyuszika7h.dyndns.org/~nyuszika7h/.vimrc
|
2012-12-21 12:08:42 +01:00
|
|
|
|
2011-12-31 20:40:19 +01:00
|
|
|
set number " Show line numbers.
|
|
|
|
|
|
|
|
set ruler " Show the line and column number of the cursor position,
|
|
|
|
" separated by a comma.
|
|
|
|
|
|
|
|
set background=dark " When set to "dark", Vim will try to use colors that look
|
|
|
|
" good on a dark background. When set to "light", Vim will
|
|
|
|
" try to use colors that look good on a light background.
|
|
|
|
" Any other value is illegal.
|
|
|
|
|
2012-01-01 11:11:15 +01:00
|
|
|
" end of copied from nyuszika7h
|
|
|
|
|
2012-12-21 12:08:42 +01:00
|
|
|
|
2012-01-01 11:11:15 +01:00
|
|
|
"Use modelines!
|
|
|
|
set modeline
|
|
|
|
|
|
|
|
"end of copied fron vimwiki.
|
|
|
|
|
|
|
|
" copied from http://www.linuxquestions.org/questions/suse-novell-60/how-to-make-a-tab-is-4-spaces-width-in-vim-355658/
|
|
|
|
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
|
|
|
set autoindent
|
|
|
|
|
|
|
|
" end of copied fron linuxquestions.org
|
2012-01-06 10:56:50 +01:00
|
|
|
|
|
|
|
" Copied from whttp://items.sjbach.com/319/configuring-vim-right
|
|
|
|
|
|
|
|
" Longer history
|
|
|
|
set history=1000
|
|
|
|
|
|
|
|
" Extended % matching
|
|
|
|
runtime macros/matchit.vim
|
|
|
|
|
|
|
|
" Make tab filler useful.
|
|
|
|
set wildmenu
|
|
|
|
set wildmode=list:longest
|
|
|
|
|
|
|
|
" Flash, do not beep!
|
|
|
|
set visualbell
|
|
|
|
" End of copied from http://items.sjbach.com/319/configuring-vim-right
|
2012-03-23 17:13:17 +01:00
|
|
|
|
|
|
|
" gvim has light background
|
|
|
|
if has('gui_running')
|
|
|
|
set background=light
|
|
|
|
endif
|
2014-05-14 13:38:29 +02:00
|
|
|
|
|
|
|
" Show hidden characters via http://www.perturb.org/display/679_Make_Vim_show_hidden_characters.html
|
|
|
|
set invlist
|
|
|
|
|
|
|
|
"Prefer to UNIX line endings, but understand DOS too.
|
|
|
|
set fileformats=unix,dos
|
|
|
|
|
|
|
|
"Use UTF-8!
|
|
|
|
set encoding=utf-8
|
|
|
|
set fileencoding=utf-8
|
|
|
|
|
|
|
|
" Remove BOMs. They broke things yesterday nd now they wasted my time
|
|
|
|
" at school! via http://techwelkin.com/how-to-remove-byte-order-mark-bom-characters
|
|
|
|
set nobomb
|