forked from spicycode/Vimlander-2-The-Quickening
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gvimrc
137 lines (101 loc) · 2.88 KB
/
.gvimrc
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
set guifont=Monaco:h14
set guioptions-=T
set columns=120
set lines=70
set number
" fullscreen maximizes vertically AND horizontally
set fuoptions=maxvert,maxhorz
" Scrollbar is always off.
set guioptions-=rL
" Unmap Apple+T so we can...
macmenu &File.New\ Tab key=<nop>
" Change Apple+T to TextMate Like Fuzzy Finder
nnoremap <D-t> :FufFile<CR>
" Unmap Apple+Shift+T so we can...
macmenu &File.Open\ Tab\.\.\. key=<nop>
" Change Apple+Shift+T to TextMate Like Fuzzy Finder
nnoremap <D-T> :FufTag!<CR>
" Unmap Apple+b so we can...
macmenu &Tools.Make key=<nop>
" Change Apple+b to Emacseque buffer browser
map <D-b> :FufBuffer!<CR>
imap <D-b> :FufBuffer!<CR>
" Unmap Apple+S to remap to Esc, then :w<CR>
macmenu &File.Save key=<nop>
imap <D-s> <Esc>:w<CR>
map <D-s> :w<CR>
" TABS: safari style tab navigation
nmap <D-[> :tabprevious<CR>
nmap <D-]> :tabnext<CR>
map <D-[> :tabprevious<CR>
map <D-]> :tabnext<CR>
imap <D-[> <C-O>:tabprevious<CR>
imap <D-]> <C-O>:tabnext<CR>
" TABS: Firefox style, open tabs with command-<tab number>
map <silent> <D-1> :tabn 1<CR>
map <silent> <D-2> :tabn 2<CR>
map <silent> <D-3> :tabn 3<CR>
map <silent> <D-4> :tabn 4<CR>
map <silent> <D-5> :tabn 5<CR>
map <silent> <D-6> :tabn 6<CR>
map <silent> <D-7> :tabn 7<CR>
map <silent> <D-8> :tabn 8<CR>
map <silent> <D-9> :tabn 9<CR>
" bind command-] to shift right
nmap <D-]> >>
vmap <D-]> >>
imap <D-]> <C-O>>>
" bind command-[ to shift left
nmap <D-[> <<
vmap <D-[> <<
imap <D-[> <C-O><<
" NERDCommenter
let NERDDefaultNesting = 0
let NERDRemoveExtraSpaces = 1
let NERDSpaceDelims = 1
" bind command-/ to toggle comment
" requires NERD Commenter to be installed: http://www.vim.org/scripts/script.php?script_id=1218
nmap <D-/> ,c<Space>
vmap <D-/> ,c<Space>
imap <D-/> <C-O>,c<Space>
" NERDTree
" Enable nice colors
let NERDChristmasTree = 1
" Make it easy to see where we are
let NERDTreeHighlightCursorline = 1
" Make bookmarks visible
let NERDTreeShowBookmarks = 1
" Show hidden files
let NERDTreeShowHidden = 1
" Don't hijack NETRW
let NERDTreeHijackNetrw = 0
let NERDTreeIgnore=['\.$', '\~$']
" Make F2 open NERDTree
nmap <F2> :NERDTreeToggle<CR>
" Tyler's customizations
"
noremap <F3> :NERDTreeToggle<CR>
noremap <C-d> :NERDTreeToggle<CR>
noremap <C-o> :MRU<CR>
noremap ? :nohlsearch<CR>
"Close tabs with tc
noremap tc :tabclose<CR>
"Create new tab with Ctl+t
noremap tt :tabnew<CR>
noremap ts :ScreenSend<CR>
noremap tn :tabnext<CR>
set foldlevel=99999999
noremap ts :ScreenSend<CR>
noremap tn :tabnext<CR>
let clj_highlight_builtins = 1
let clj_highlight_contrib = 1
let clj_paren_rainbow = 1
let clj_want_gorilla = 1
map <leader>e :e <C-R>=expand("%:h")<cr>/
map <leader>q :q<cr>
map <leader>i :LGitGrep<space>
let g:AutoClosePairs = {'(': ')', '{': '}', '[': ']', '"': '"'}
let MRU_Max_Entries = 1000
let g:rails_expensive = 0
let g:rubycomplete_rails = 0
map <leader>iw :execute 'LGitGrep ' . expand("<cword>")<CR>