cleaning a bit, including moving out some old docs, and renaming
[feisty_meow.git] / infobase / configuration / vim / dot.vimrc
1
2 " cranks up the register saved buffer size to 1000 lines, since otherwise the cut buffer will only
3 " preserve the default 50 lines for a paste to another file.  this makes all registers go up to
4 " this size though, so if you save to a lot of different ones, you will use more space in your
5 " viminfo file.
6 set viminfo='100,<1000,s10,h
7
8 " tells vim not to make a backup of the file before editing it; this is living dangerously.
9 set nobk
10
11 " nocompatible|nocp turns off compatibility mode, allowing filename completion.
12 set nocompatible
13
14 " elflord just happens to be the color scheme i prefer.  there are a bunch.
15 colorscheme elflord
16
17 " map the normal copy, cut and paste keys (ctrl-c, ctrl-x & ctrl-v) for vim.
18 nmap <C-V> "+gP
19 imap <C-V> <ESC><C-V>i
20 vmap <C-C> "+y 
21 vmap <C-X> "+c
22
23 " map ctrl-a to select all of the file.  ctrl-i increments, whatever that is.
24 noremap <C-I> <C-A>
25 noremap <C-A> gggH<C-O>G
26 inoremap <C-A> <C-O>gg<C-O>gH<C-O>G
27 cnoremap <C-A> <C-C>gggH<C-O>G
28 onoremap <C-A> <C-C>gggH<C-O>G
29 snoremap <C-A> <C-C>gggH<C-O>G
30 xnoremap <C-A> <C-C>ggVG