metatribe / vimrc

My .vimrc and friends

This URL has Read+Write access

vimrc / vimrc
100644 85 lines (61 sloc) 1.387 kb
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
78
79
80
81
82
83
84
85
" Enable completion menu
set wildmenu
 
" No tabs, indent width is 2 spaces
set autoindent
set expandtab
set tabstop=2
set smarttab
set shiftwidth=2
set backspace=start,indent,eol
 
" Non-active windows have zero height
set winheight=10000
set winminheight=0
 
" Use existing window when switching buffers
set switchbuf=useopen
 
" Show line numbers, current mode and command
set number
set showmode
set showcmd
set hlsearch
 
" Kill swap files
set noswapfile
 
" Kill mouse
set mouse=
 
syntax on
filetype on
filetype indent on
filetype plugin on
 
" Fuzzy finder
map <c-t> :FuzzyFinderTextMate<cr>
map <c-T> :FuzzyFinderTextMateRefreshFiles<cr>:FuzzyFinderTextMate<cr>
 
map <c-b> :FuzzyFinderBuffer<cr>
 
imap <c-t> <esc><c-t>
imap <c-T> <esc><c-T>
imap <c-b> <esc><c-b>
 
" Allow more files for fuzzy finder
let g:fuzzy_ceiling = 50000
 
 
 
" NERD Tree
map ,d :NERDTreeToggle<cr>
 
" Kill search highlighting
map ,s :nohlsearch<cr>
 
" Save
map <c-s> :w<cr>
imap <c-s> <esc><c-s>
 
" Quit
map <c-q> :q<cr>
imap <c-q> <esc><c-q>
 
 
" Window navigation
map <a-left> <c-w><left>
map <a-right> <c-w><right>
map <a-up> <c-w><up>
map <a-down> <c-w><down>
 
imap <a-left> <esc><c-w><left>
imap <a-right> <esc><c-w><right>
imap <a-up> <esc><c-w><up>
imap <a-down> <esc><c-w><down>
 
 
" Run "make"
map <f2> :w<cr>:make<cr>
imap <f2> <esc><f2>
 
" Run "make run"
map <f3> :w<cr>:!make run<cr>
imap <f3> <esc><f3>