From 44278f4c4d73b7839dbc294817dcafd90d7450d0 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 5 Mar 2013 14:20:52 -0500 Subject: [PATCH] updated to include AWESOME mappings that make cut&paste work as i want: ctrl-a selects all ctrl-x cut ctrl-c copy ctrl-v paste this makes vim a hugely better match for how i use it, since i can launch gvim and not need to know the bizarro vim keys for copy/paste. --- database/configuration/vim/dotvimrc | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/database/configuration/vim/dotvimrc b/database/configuration/vim/dotvimrc index 52786909..b271fa5b 100644 --- a/database/configuration/vim/dotvimrc +++ b/database/configuration/vim/dotvimrc @@ -1,17 +1,30 @@ -set viminfo='100,<1000,s10,h " cranks up the register saved buffer size to 1000 lines, since otherwise the cut buffer will only " preserve the default 50 lines for a paste to another file. this makes all registers go up to " this size though, so if you save to a lot of different ones, you will use more space in your " viminfo file. +set viminfo='100,<1000,s10,h -set nobk " tells vim not to make a backup of the file before editing it; this is living dangerously. +set nobk -set nocompatible " nocompatible|nocp turns off compatibility mode, allowing filename completion. +set nocompatible -colorscheme elflord " elflord just happens to be the color scheme i prefer. there are a bunch. +colorscheme elflord +" map the normal copy, cut and paste keys (ctrl-c, ctrl-x & ctrl-v) for vim. +nmap "+gP +imap i +vmap "+y +vmap "+c +" map ctrl-a to select all of the file. ctrl-i increments, whatever that is. +noremap +noremap gggHG +inoremap gggHG +cnoremap gggHG +onoremap gggHG +snoremap gggHG +xnoremap ggVG -- 2.34.1