47 lines
632 B
VimL
47 lines
632 B
VimL
" 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
|
|
set background=dark
|
|
|
|
"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
|