|
|
@ -19,7 +19,8 @@ set wildmenu
|
|
19
|
19
|
set tabstop=3
|
|
20
|
20
|
set shiftwidth=3
|
|
21
|
21
|
set smarttab
|
|
22
|
|
set paste " keep indendation on paste
|
|
|
22
|
set nopaste
|
|
|
23
|
set pastetoggle=<C-i>
|
|
23
|
24
|
|
|
24
|
25
|
set number " With numbertoggle they're quite cool (I think)
|
|
25
|
26
|
|
|
|
@ -27,12 +28,15 @@ set number " With numbertoggle they're quite cool (I think)
|
|
27
|
28
|
set copyindent
|
|
28
|
29
|
|
|
29
|
30
|
" Show whitespace
|
|
30
|
|
"set list listchars=tab:»·,trail:·
|
|
|
31
|
set list listchars=tab:»·,trail:·,eol:¶
|
|
31
|
32
|
"au BufNewFile,BufRead *.{c,h} set listchars=tab:\ \ ,trail:·
|
|
32
|
33
|
|
|
33
|
34
|
" Keep a longer history
|
|
34
|
35
|
set history=1000
|
|
35
|
36
|
|
|
|
37
|
" Keep buffers when closing them (useful?)
|
|
|
38
|
set hidden
|
|
|
39
|
|
|
36
|
40
|
" Oh YEAY, finally. Store them (swaps) all in *one* directory.
|
|
37
|
41
|
set directory=~/.vim/tmp/
|
|
38
|
42
|
|
|
|
@ -50,8 +54,7 @@ function! g:setTextWidthInComments()
|
|
50
|
54
|
set textwidth=0
|
|
51
|
55
|
endif
|
|
52
|
56
|
endfunction
|
|
53
|
|
|
|
54
|
|
autocmd CursorMoved * :call g:setTextWidthInComments()
|
|
|
57
|
"autocmd CursorMoved * :call g:setTextWidthInComments()
|
|
55
|
58
|
|
|
56
|
59
|
" via <http://paulrouget.com/e/vimdarkroom>
|
|
57
|
60
|
function! ToggleFocusMode()
|
|
|
@ -84,16 +87,18 @@ set scrolloff=1
|
|
84
|
87
|
|
|
85
|
88
|
"""
|
|
86
|
89
|
call pathogen#infect('~/t/vim/')
|
|
|
90
|
let g:ScreenImpl = 'Tmux'
|
|
|
91
|
let g:ctrlp_custom_ignore = {
|
|
|
92
|
\ 'dir': '\.git$'
|
|
|
93
|
\ }
|
|
|
94
|
let g:ctrlp_prompt_mappings = {
|
|
|
95
|
\ 'PrtClearCache': ['<F12>']
|
|
|
96
|
\ }
|
|
87
|
97
|
call pathogen#infect('~/t/notmuch/')
|
|
88
|
98
|
call pathogen#infect('~/t/vim/clojure')
|
|
89
|
99
|
let g:vimclojure#ParenRainbow=1
|
|
90
|
100
|
let g:vimclojure#NailgunClient="/home/lu/t/vim/clojure/client/ng"
|
|
91
|
|
let g:vimclojure#WantNailgun=1
|
|
92
|
|
|
|
93
|
|
" Have syntax highlighting and non-vi features
|
|
94
|
|
syntax on
|
|
95
|
|
filetype plugin indent on
|
|
96
|
|
set nocompatible
|
|
|
101
|
let g:vimclojure#WantNailgun=0
|
|
97
|
102
|
|
|
98
|
103
|
" soo beautiful! :)
|
|
99
|
104
|
let g:solarized_termtrans=1 " Somehow needed to make some places (empty space etc.) beautiful aswell
|
|
|
@ -130,8 +135,8 @@ map Q :quitall<CR>
|
|
130
|
135
|
map <Space> :NERDTree<CR>
|
|
131
|
136
|
map <c-b> :make<CR> " build
|
|
132
|
137
|
" Fuzzy finding (http://thechangelog.com/post/15573551543)
|
|
133
|
|
nmap <C-e> :CtrlP<CR>
|
|
134
|
|
nmap <C-p> :tabnew<CR>:CtrlP<CR>
|
|
|
138
|
noremap <C-e> :CtrlP<CR>
|
|
|
139
|
noremap <C-p> :tabnew<CR>:CtrlP<CR>
|
|
135
|
140
|
map <c-f> :!ack
|
|
136
|
141
|
nmap <c-a> :w<CR>
|
|
137
|
142
|
map <Leader>t :TagbarToggle<CR>
|