aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
blob: 4bc5f320784165ed5a383b102c4eba456ad48fdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
" p
" Line numbering
"set number
" Set syntax highlighting
syntax on
colorscheme brookstream
" Tabbing
set et
set shiftwidth=4
set smarttab
set autoindent
" We want a mouse in consoles, so:"
set mouse=a
filetype plugin on
filetype indent on
set textwidth=80
set bg=dark
set modeline
set modelines=1
set pastetoggle=<F10>
command -nargs=1 Hugged :/<args>/s/\(.*\) ;\(.*\)\(||\)/\1 lightgreen;\2 RyanKavanagh ||/c
""" Don't connect to X clipboard, slow
""" set clipboard=exclude:.*
" For :sp, switching and minimum height
" map <C-H> <C-W>j<C-W>_
" map <C-L> <C-W>k<C-W>_
" set wmh=0
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on
" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to alway generate a file-name.
set grepprg=grep\ -nH\ $*

" Haskell crud
au BufEnter *.hs compiler ghc
let g:haddock_browser = "/usr/bin/w3m"
let g:ghc_version = 6.8.2
let g:ghc = "/usr/bin/ghc"

" Support my daylog
au BufNewFile,BufRead daylog,daylog.dch setf debchangelog
au BufNewFile,BufRead *.tikz setf tex

map! i_<help> <Esc>
map! <Help> <Esc>
map! i_<F1> <Esc>
map! <F1> <Esc>

" minibufexpl.vim
"map \mbe :MiniBufExplorer<cr>
"map \mbc :CMiniBufExplorer<cr>
"map \mbu :UMiniBufExplorer<cr>
"map \mbt :TMiniBufExplorer<cr>

"let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1

let g:Tex_CompileRule_dvi = 'latex-mk $*'
let g:Tex_CompileRule_pdf = 'latex-mk --pdflatex $*'
let g:Tex_DefaultTargetFormat = 'pdf'
let g:Tex_ItemStyle_inparaenum = '\item'

let g:po_translator = 'Ryan Kavanagh <rak@debian.org>'

au BufEnter ~/.mutt/tmp/mutt-* set textwidth=72 | set list lcs=trail:-,nbsp:%
au BufEnter ~/.mutt/tmp/neomutt-* set textwidth=72 | set list lcs=trail:-,nbsp:%
au BufEnter */gophermap set list lcs=trail:-,nbsp:%,tab:»·,space:·