Add minimalistic vimrc for later

master
Quentin Duchemin 2023-12-18 15:01:44 +01:00
parent 2b65e1cf3d
commit 7191312010
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
1 changed files with 4 additions and 0 deletions

4
.vimrc 100644
View File

@ -0,0 +1,4 @@
vmap <C-c> :<Esc>`>a<CR><Esc>mx`<i<CR><Esc>my'xk$v'y!xclip -selection c<CR>u
map <Insert> :set paste<CR>i<CR><CR><Esc>k:.!xclip -o<CR>JxkJx:set nopaste<CR>
" Reopen the last edited position in files
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif