7 years ago
This expands on/tweaks my previous snippets about "standard" (CUA) keybindings for select all and copy (Snippet #113) and paste (Snippet #166). I decided to retrain myself to use CTRL-b to enter visual block mode and free up CTRL-v for paste. Also, I added bindings for "cut" (CTRL-x).
" I select everything in a file far more than I increment an integer! Why not " make CTRL-A do what it does in almost every other program? nmap <C-a> ggVG " CTRL-C doesn't do anything valuable in Normal or Visual mode. Why not map it " to what it does in almost every other program? vmap <C-c> "+y nmap <C-c> "+yy " Why not make Visual block mode use CTRL-B so we can free up CTRL-V for CUA? nnoremap <C-b> <C-v> nnoremap <C-v> "+p vnoremap <C-v> "+p nnoremap <C-x> "+dd vnoremap <C-x> "+d