]> git.rmz.io Git - dotfiles.git/blob - vimrc
finally working makefile
[dotfiles.git] / vimrc
1 " All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
2 " /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
3 " you can find below. If you wish to change any of those settings, you should
4 " do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
5 " everytime an upgrade of the vim packages is performed. It is recommended to
6 " make changes after sourcing debian.vim since it alters the value of the
7 " 'compatible' option.
8
9 " This line should not be removed as it ensures that various options are
10 " properly set to work with the Vim-related packages available in Debian.
11 runtime! debian.vim
12
13 " Uncomment the next line to make Vim more Vi-compatible
14 " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
15 " options, so any other options should be set AFTER setting 'compatible'.
16 "set compatible
17
18 " Vim5 and later versions support syntax highlighting. Uncommenting the
19 " following enables syntax highlighting by default.
20 if has("syntax")
21 syntax on
22 endif
23
24 " Ask what to do when closing unsaved documents
25 set confirm
26
27 " If using a dark background within the editing area and syntax highlighting
28 " turn on this option as well
29 set background=dark
30
31 " Uncomment the following to have Vim jump to the last position when
32 " reopening a file
33 if has("autocmd")
34 au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
35 endif
36
37 " Uncomment the following to have Vim load indentation rules and plugins
38 " according to the detected filetype.
39 if has("autocmd")
40 filetype plugin indent on
41 endif
42
43 " The following are commented out as they cause vim to behave a lot
44 " differently from regular Vi. They are highly recommended though.
45 set showcmd " Show (partial) command in status line.
46 set showmatch " Show matching brackets.
47 set ignorecase " Do case insensitive matching
48 set smartcase " Do smart case matching
49 set incsearch " Incremental search
50 set autowrite " Automatically save before commands like :next and :make
51 set hidden " Hide buffers when they are abandoned
52 " set mouse=a " Enable mouse usage (all modes)
53
54 " Source a global configuration file if available
55 if filereadable("/etc/vim/vimrc.local")
56 source /etc/vim/vimrc.local
57 endif
58
59 " expand tab
60 set softtabstop=4
61 set shiftwidth=4
62 set expandtab
63 set nowrap