add: vimrc hybrid line numbers

fix: zsh cursor
move: vimrc, viminfo, zsh_history
This commit is contained in:
Tobias Reisinger 2019-12-20 14:06:42 +01:00
parent 10fb0073e5
commit 5a76ba59fe
4 changed files with 30 additions and 43 deletions
.config

24
.config/vimrc Normal file
View file

@ -0,0 +1,24 @@
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