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