updated to include AWESOME mappings that make cut&paste work as i want:
[feisty_meow.git] / database / configuration / vim / dotvimrc
index 52786909d85c534a588efd5ed5e85f9adffbdfb3..b271fa5b6b71dd12cf3882fd5dc6ecdd8762a952 100644 (file)
@@ -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 <C-V> "+gP
+imap <C-V> <ESC><C-V>i
+vmap <C-C> "+y 
+vmap <C-X> "+c
 
+" map ctrl-a to select all of the file.  ctrl-i increments, whatever that is.
+noremap <C-I> <C-A>
+noremap <C-A> gggH<C-O>G
+inoremap <C-A> <C-O>gg<C-O>gH<C-O>G
+cnoremap <C-A> <C-C>gggH<C-O>G
+onoremap <C-A> <C-C>gggH<C-O>G
+snoremap <C-A> <C-C>gggH<C-O>G
+xnoremap <C-A> <C-C>ggVG