-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_vimrc
41 lines (30 loc) · 1003 Bytes
/
dot_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
" Mike's .vimrc
" macOS Settings (defaulted nicer on Linux!)
" Make backspace work on macOS
set backspace=indent,eol,nostop
" Enable syntax highlighting
syntax on
" 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:␉·
" Statusline - https://github.com/itchyny/lightline.vim
set laststatus=2 " Always display the status bar
set noshowmode