Bladeren bron

~/.vimrc: Disable 'nopaste' and use 'pastetoggle' instead.

`<C-i>` if that's what you wanted to know.
Lucas Stadler 13 jaren geleden
bovenliggende
commit
dbc8e86fc7
1 gewijzigde bestanden met toevoegingen van 17 en 12 verwijderingen
  1. 17 12
      .vimrc

+ 17 - 12
.vimrc

19
set tabstop=3
19
set tabstop=3
20
set shiftwidth=3
20
set shiftwidth=3
21
set smarttab
21
set smarttab
22
set paste " keep indendation on paste
22
set nopaste
23
set pastetoggle=<C-i>
23
24
24
set number " With numbertoggle they're quite cool (I think)
25
set number " With numbertoggle they're quite cool (I think)
25
26
27
set copyindent
28
set copyindent
28
29
29
" Show whitespace
30
" Show whitespace
30
"set list listchars=tab:»·,trail:·
31
set list listchars=tab:»·,trail:·,eol:¶
31
"au BufNewFile,BufRead *.{c,h} set listchars=tab:\ \ ,trail:·
32
"au BufNewFile,BufRead *.{c,h} set listchars=tab:\ \ ,trail:·
32
33
33
" Keep a longer history
34
" Keep a longer history
34
set history=1000
35
set history=1000
35
36
37
" Keep buffers when closing them (useful?)
38
set hidden
39
36
" Oh YEAY, finally. Store them (swaps) all in *one* directory.
40
" Oh YEAY, finally. Store them (swaps) all in *one* directory.
37
set directory=~/.vim/tmp/
41
set directory=~/.vim/tmp/
38
42
50
		set textwidth=0
54
		set textwidth=0
51
	endif
55
	endif
52
endfunction
56
endfunction
53
54
autocmd CursorMoved * :call g:setTextWidthInComments()
57
"autocmd CursorMoved * :call g:setTextWidthInComments()
55
58
56
" via <http://paulrouget.com/e/vimdarkroom>
59
" via <http://paulrouget.com/e/vimdarkroom>
57
function! ToggleFocusMode()
60
function! ToggleFocusMode()
84
87
85
"""
88
"""
86
call pathogen#infect('~/t/vim/')
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
call pathogen#infect('~/t/notmuch/')
97
call pathogen#infect('~/t/notmuch/')
88
call pathogen#infect('~/t/vim/clojure')
98
call pathogen#infect('~/t/vim/clojure')
89
let g:vimclojure#ParenRainbow=1
99
let g:vimclojure#ParenRainbow=1
90
let g:vimclojure#NailgunClient="/home/lu/t/vim/clojure/client/ng"
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
" soo beautiful! :)
103
" soo beautiful! :)
99
let g:solarized_termtrans=1 " Somehow needed to make some places (empty space etc.) beautiful aswell
104
let g:solarized_termtrans=1 " Somehow needed to make some places (empty space etc.) beautiful aswell
130
map <Space> :NERDTree<CR>
135
map <Space> :NERDTree<CR>
131
map <c-b> :make<CR> " build
136
map <c-b> :make<CR> " build
132
" Fuzzy finding (http://thechangelog.com/post/15573551543)
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
map <c-f> :!ack
140
map <c-f> :!ack
136
nmap <c-a> :w<CR>
141
nmap <c-a> :w<CR>
137
map <Leader>t :TagbarToggle<CR>
142
map <Leader>t :TagbarToggle<CR>