Debian Codegraph @

debian/runtime/vimrc

raw
1 " $VIMRUNTIME refers to the versioned system directory where Vim stores its
2 " system runtime files -- /usr/share/vim/vim<version>.
3 "
4 " Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc.
5 " This happens after /etc/vim/vimrc(.local) are loaded, so it will override
6 " any settings in these files.
7 "
8 " If you don't want that to happen, uncomment the below line to prevent
9 " defaults.vim from being loaded.
10 " let g:skip_defaults_vim = 1
11 "
12 " If you would rather _use_ default.vim's settings, but have the system or
13 " user vimrc override its settings, then uncomment both lines below (to load
14 " the settings now but prevent it from being loaded by the user's vimrc).
15 " source $VIMRUNTIME/defaults.vim
16 " let g:skip_defaults_vim = 1
17
18 " All Debian-specific settings are defined in $VIMRUNTIME/debian.vim and
19 " sourced by the call to :runtime you can find below. If you wish to change
20 " any of those settings, you should do it in this file or
21 " /etc/vim/vimrc.local, since debian.vim will be overwritten everytime an
22 " upgrade of the vim packages is performed. It is recommended to make changes
23 " after sourcing debian.vim so your settings take precedence.
24
25 runtime! debian.vim
26
27 " Uncomment the next line to make Vim more Vi-compatible
28 " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes
29 " numerous options, so any other options should be set AFTER changing
30 " 'compatible'.
31 "set compatible
32
33 " Vim5 and later versions support syntax highlighting. Uncommenting the next
34 " line enables syntax highlighting by default.
35 "syntax on
36
37 " If using a dark background within the editing area and syntax highlighting
38 " turn on this option as well
39 "set background=dark
40
41 " Uncomment the following to have Vim jump to the last position when
42 " reopening a file
43 "au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
44
45 " Uncomment the following to have Vim load indentation rules and plugins
46 " according to the detected filetype.
47 "filetype plugin indent on
48
49 " The following are commented out as they cause vim to behave a lot
50 " differently from regular Vi. They are highly recommended though.
51 "set showcmd " Show (partial) command in status line.
52 "set showmatch " Show matching brackets.
53 "set ignorecase " Do case insensitive matching
54 "set smartcase " Do smart case matching
55 "set incsearch " Incremental search
56 "set autowrite " Automatically save before commands like :next and :make
57 "set hidden " Hide buffers when they are abandoned
58 "set mouse=a " Enable mouse usage (all modes)
59
60 " Source a global configuration file if available
61 if filereadable("/etc/vim/vimrc.local")
62 source /etc/vim/vimrc.local
63 endif
64