-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
executable file
·52 lines (41 loc) · 940 Bytes
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
" basic settings
set showcmd
set showmode
" allow cursor keys in insert mode
set esckeys
set nocompatible
" use UTF-8 without BOM
set encoding=utf-8 nobomb
" show invisible characters
" set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
" set list
" disable backup and swap files
set nobackup
set nowritebackup
set noswapfile
" centralize backups, swap files and undo history
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
if exists("&undodir")
set undodir=~/.vim/undo
endif
" tab and indent
set tabstop=2
set softtabstop=2
set shiftwidth=2
" enable syntax highlighting
syntax on
" Enable line numbers
set number
" highlight searches
set hlsearch
" Ignore case of searches
set ignorecase
" highlight some keywords
highlight todoHighlight cterm=bold term=bold ctermfg=yellow
match todoHighlight /\(\FIXME|NOTE\|TODO\)/
" disable error bells
set noerrorbells
if filereadable(glob("~/.vimrc.local"))
source ~/.vimrc.local
endif