-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
37 lines (27 loc) · 894 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
" 2016-12-20: created by salmin
runtime! debian.vim
syntax on
colo torte
set statusline=%F%m%r%h%w\ [%{&ff}]\ [%Y]\ [%LL]\ %=\ [0x\%02.2B]\ [%04l,%03v]\ [%02p%%]
set laststatus=2
set number
filetype plugin indent on
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
" Fix auto-indentation for YAML files
augroup yaml_fix
autocmd!
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab indentkeys-=0# indentkeys-=<:>
augroup END
set viminfo='100,<1000,s100
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
" TODO replace with the DeleteTrailingWhitespace plugin
autocmd BufWritePre * :%s/\s\+$//e