diff --git a/vimrc b/vimrc index a317bf9..f408679 100644 --- a/vimrc +++ b/vimrc @@ -81,6 +81,11 @@ let g:airline_powerline_fonts=1 " Make airline use powerline fonts (pretty arrow " Allow saving of files as sudo when I forgot to start vim using sudo. cmap w!! w !sudo tee > /dev/null % +" Map CAPSLOCK to Escape in insert mode? + +" Wrap move left/right to end of last line/beginning of the next one +set whichwrap+=<,>,h,l,[,] + " Do not create swap files set nobackup set noswapfile @@ -93,6 +98,16 @@ augroup numbertoggle autocmd! autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber augroup END +" Yank vim text to system & selection clipboard with Ctrl+C +" Paste with Ctrl+V +" Requires `gvim` that is the following flags to your `vim --version` +" +clipboard +" +X11 +" +xterm_clipboard +" From https://www.youtube.com/watch?v=E_rbfQqrm7g +vnoremap "*y :let @+=@* +map "+P + " You wanna suffer? Disable arrow keys " noremap " noremap