-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathalles-vimrc.vim
93 lines (71 loc) · 1.98 KB
/
alles-vimrc.vim
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
set autoread
set nu
set laststatus=2
" Get the 's' key back
xmap <Leader>s <Plug>Vsurround
set autowrite
set nofoldenable
set wrap
set linebreak
"colorscheme koehler
"colorscheme default
colorscheme molokai
" Buffer navigation: Next and Previous
noremap <C-N> :bn<CR>
noremap <C-P> :bp<CR>
" Textmate-style arrows shortcut
imap <Space>=><Space>
" Windowzizms:
" Run:
map <F5> ,r<CR>
" Save:
noremap <F2> :w<CR>
set wrap
" Camel-hump case boundary detection
" map ,w cv/[a-z][A-Z^\n^ ^\t^(^[^.^_]<CR>
map <F4> :A
map <F3> :A
map <F7> :call VimWriteRoom()<CR>
let optional = []
let optional += ["nerdtree", 'vim-airline']
let optional += ['ctrlp-cmatcher']
let optional += ['vim-rspec']
call optional#include(optional)
let g:ctrlp_match_func = {'match' : 'matcher#cmatch' }
" clojure configuration
let vimclojure#ParenRainbow = 1
let vimclojure#HighlightBuiltins = 1
nnoremap <leader>n :NERDTreeToggle<cr>
" RSpec.vim mappings
map <Leader>a :call RunCurrentTestFile()<CR>
map <Leader>r :call RunNearestTest()<CR>
map <Leader>l :call RunLastTest()<CR>
let g:test_runner = "os_x_terminal"
" Search term highlighting on / off:
noremap <leader>hl :set hlsearch<CR>
noremap <leader>nhl :set nohlsearch<CR>
set gfn=Menlo:h14
:au BufWinEnter * RainbowParenthesesActivate
:au BufWinEnter * RainbowParenthesesLoadRound
:au BufWinEnter * RainbowParenthesesLoadSquare
:au BufWinEnter * RainbowParenthesesLoadBraces
" ~/snip is a junk file; call it a customized clipboard
" Write to snip. Either uses current visual selection, or entire buffer
noremap \ws :w! ~/snip<cr>
" Read contents of snip into current buffer
noremap \rs :r ~/snip<cr>
" Edit the snip file
noremap \es :e ~/snip<cr>
" Append to the snip file
noremap \as :w! >> ~/snip<cr>
let g:airline_powerline_fonts = 1
let g:airline#extensions#default#section_truncate_width = {
\ 'b': 110,
\ 'x': 65,
\ 'y': 100,
\ 'z': 50,
\ }
let g:airline#extensions#default#layout = [
\ [ 'a', 'c' ],
\ [ 'x', 'b', 'z']
\ ]