.dotfiles/.config/vim/vimrc
2019-12-26 20:59:01 +01:00

29 lines
623 B
VimL

set runtimepath+=~/.config/vim,~/.config/vim/after
set viminfo+=n~/.cache/viminfo
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
" Save cursor position. I don't understand this part :)
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif
call plug#begin('~/.config/vim/plugged')
Plug 'https://github.com/editorconfig/editorconfig-vim.git'
call plug#end()