2017-05-03 13:10:13 +00:00
|
|
|
" Personal vim config
|
|
|
|
scriptencoding utf-8
|
|
|
|
set encoding=utf-8
|
|
|
|
|
|
|
|
set backspace=2
|
|
|
|
|
|
|
|
set modeline
|
|
|
|
|
|
|
|
set nocompatible
|
|
|
|
set cindent
|
|
|
|
set tabstop=3
|
|
|
|
set shiftwidth=3
|
|
|
|
set noexpandtab
|
|
|
|
|
|
|
|
set scrolloff=6
|
|
|
|
set cursorline
|
|
|
|
|
|
|
|
set listchars=tab:».,trail:.
|
|
|
|
|
|
|
|
set mouse=
|
|
|
|
|
|
|
|
set number
|
|
|
|
set relativenumber
|
|
|
|
|
|
|
|
syntax enable
|
2017-05-03 13:13:50 +00:00
|
|
|
"set background=dark
|
2017-05-03 13:10:13 +00:00
|
|
|
|
|
|
|
"colorscheme apprentice
|
|
|
|
|
|
|
|
if has("autocmd")
|
|
|
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
|
|
|
\| exe "normal! g'\"" | endif
|
|
|
|
endif "
|
|
|
|
|
|
|
|
" Custom mappings
|
|
|
|
nmap rr "_dd
|
|
|
|
nmap <leader>l :setlocal list!<cr>
|
|
|
|
|
|
|
|
" visual mode mappings
|
|
|
|
vmap r "_d
|
|
|
|
vmap R "_dP
|
|
|
|
|
|
|
|
"set foldmethod=indent
|
|
|
|
|
|
|
|
" set fmr={,}
|
|
|
|
"set foldnestmax=1
|