.dotfiles/.config/vimrc

25 lines
450 B
VimL
Raw Normal View History

set number relativenumber
augroup numbertoggle
autocmd!
autocmd WinEnter * set relativenumber
autocmd WinLeave * set norelativenumber
augroup END
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
set encoding=utf-8
set nowrap
set viminfo+=n~/.cache/viminfo
" Save cursor position. I don't understand this part :)
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif