blob: 5ca1498b0d525fd1b6d0f8dea2d8e83df289d686 (
plain)
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
70
71
72
73
74
75
76
77
|
"----------------------------------------------------
" File: .vimrc
" Version: 0.1.1
" Author: Florian "Bluewind" Pritz <f-p@gmx.at>
"----------------------------------------------------
set nocompatible
set encoding=utf-8 " unicode encoding
set t_Co=256
set nobackup
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set ruler " show me where the cursor is
set rulerformat=%l/%L(%p%%),%c " a better ruler
set showmatch " show matching brackets
set cindent
set number " show line numbers
set showmode " show mode at bottom of screen
set hlsearch " highlight all search results
set incsearch " increment search
set ignorecase " case-insensitive search
set smartcase " upper-case sensitive search
set laststatus=2
set ruler " ruler display in status line
"set mouse-=a " disable the mouse
set nopaste
"inoremap <tab> <c-n>
let python_highlight_all = 1
" common save shortcuts
inoremap <C-s> <esc>:w<cr>a
nnoremap <C-s> :w<cr>
autocmd FileType make setlocal noexpandtab
"colorscheme gardener
"colorscheme desert256
colorscheme candycode
"colorscheme jellybeans
" Toggle dark/light default colour theme for shitty terms
map <F2> :let &background = ( &background == "dark" ? "light" : "dark" )<CR>
" Compile and run keymappings
au FileType php map <F4> :!php %<CR>
au FileType python map <F4> :!python %<CR>
au FileType perl map <F4> :!perl %<CR>
au FileType ruby map <F4> :!ruby %<CR>
au FileType lua map <F4> :!lua %<CR>
au FileType html,xhtml map <F4> :!firefox %<CR>
" MiniBufExplorer
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
"set tags+=$HOME/.vim/tags/python.ctags
map <F12> <ESC>ggg?G``" apply rot13 for people snooping over shoulder, good fun
if !has("gui_running")
if &term == "screen"
set <C-Right>=Oc
set <C-Left>=Od
imap <C-Right> <ESC>:bn<RETURN>
imap <C-Left> <ESC>:bp<RETURN>
endif
endif
if has("gui_running")
set guioptions-=m
set guioptions-=T
endif
|