vim/vimrc
2019-02-15 17:41:46 +01:00

36 lines
583 B
VimL

" Style
colorscheme elflord
syntax on
set wildmenu
set autoindent
" Tab
set tabstop=2
set shiftwidth=2
set expandtab
set smarttab
"set textwidth=72
" Show row numbers
set nu
scriptencoding utf-8
set encoding=utf-8
" Strip trailing whitespaces
autocmd BufWritePre * %s/\s\+$//e
" Display extra whitespace
set list listchars=eol:$,tab:»·,trail
" Copy paste about clipboard
set mouse=v
" Sepcial configurations
autocmd Filetype make setlocal noexpandtab
autocmd BufNewFile,BufRead rsnapshot.conf setlocal noexpandtab
" Autocompletion (bash)
set wildmode=longest,list,full