-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
21 lines (19 loc) · 785 Bytes
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
set backspace=2 " backspace in insert mode works like normal editor
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set autoindent " auto indenting
set number " line numbers
set nobackup " get rid of anoying ~file
" Indentation settings for using 3 spaces instead of tabs.
" Do not change 'tabstop' from its default value of 8 with this setup.
"set shiftwidth=2
"set softtabstop=2
"set expandtab
" Indentation settings for using hard tabs for indent. Display tabs as
" two characters wide.
set tabstop=2 shiftwidth=2 expandtab
set list
autocmd BufWritePre * :%s/\s\+$//e "automatically remove trailing whitespaces when saving
set foldmethod=syntax
set foldnestmax=5
set foldlevelstart=20