From: Chris Koeritz Date: Tue, 5 Mar 2013 19:20:52 +0000 (-0500) Subject: updated to include AWESOME mappings that make cut&paste work as i want: X-Git-Tag: 2.140.90~1070 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=44278f4c4d73b7839dbc294817dcafd90d7450d0;p=feisty_meow.git 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. --- 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