-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_vimrc
More file actions
32 lines (22 loc) · 734 Bytes
/
dot_vimrc
File metadata and controls
32 lines (22 loc) · 734 Bytes
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
" Mike's .vimrc
" Use 4 spaces for a tab.
set softtabstop=4 shiftwidth=4 expandtab
" Use colors for a dark terminal background
set background=dark
" Search settings. Highlight and incremental.
set hlsearch
set incsearch
" Enhanced tab completion
set wildmenu
" Git commit spellcheck, width
autocmd Filetype gitcommit setlocal spell textwidth=72
autocmd Filetype hgcommit setlocal spell textwidth=72
" Markdown spellcheck, width
autocmd Filetype markdown setlocal spell textwidth=80
" Yaml tab size
autocmd Filetype yaml setlocal softtabstop=2 shiftwidth=2
" Log file syntax highlighting
autocmd BufNewFile,BufReadPost *.log :set filetype=log norelativenumber nonumber
" Show chars for tabs.
set list
set listchars=tab:␉·