-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
95 lines (77 loc) · 3 KB
/
vimrc
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
" Universe Fragment .vimrc {{{
" iffothen/sol
" For beautious terminal shells, remember to set 256 colors in the your .profile
" But that's awful, because there is no background image.
" In 256 color, lodestone is all right, molokai is great, and zenburn is zenburn
"
" 1) much from https://github.com/joelhooks/dotfiles/blob/master/.vim/vimrc
" 2) a list of interesting vim plugins can be found at
" http://el-tramo.be/blog/my-favorite-vim-plugins/ }}}
set nocompatible " devient viMprovée
" In the beginning the Universe was created. This has made a lot
" of people very angry and been widely regarded as a bad move. {
" machine specific {
let $HOME = fnamemodify('~', ':p')
" }
if has('win32')
let $SUPERHOME = $HOME . '\vim'
else
let $SUPERHOME = $HOME . '/.vim/'
endif
let g:tab_spacing = 2
set expandtab " replace tab with spaces !!
set wrap
" }
" Thusly pathed {
set rtp+=$SUPERHOME/bundle/Vundle.vim " vundling hausaufgaben
"let path=$SUPERHOME . '\bundle'
let path=$SUPERHOME . '/bundle'
let g:ctrlp_default_input = 'gitc/' " ctrlp search root !!
let g:ctrlp_cache_dir = $SUPERHOME.'/.cache/ctrlp'
let g:tagbar_ctags_bin = $HOME . '/local/bin/ctags'
if has("persistent_undo") " persistent undo since 7.3
set undodir=$SUPERHOME/undodir
set undofile
endif
" see $SUPERHOME/cddir.vim for more paths
" }
" Avant du sourçage on définit des touches {
let mapleader = ',' " alt: '\\'
let maplocalleader = '\\'
" }
function! HasMac()
" Detect mac
if has('unix')
let s:uname = system('uname -s')
if s:uname =~ 'darwin'
return 1
endif
endif
return 0
endfunction
" Sourcing vimscript & co {{{
" Reload changes to .vimrc automatically
augroup vimsourcer
autocmd!
"autocmd BufWritePost ~/_vimrc source ~/_vimrc TODO abstract namiing
autocmd BufWritePost $SUPERHOME/vimrc source $SUPERHOME/vimrc
autocmd BufWritePost $SUPERHOME/*.vim source $SUPERHOME/vimrc
augroup END
" Our birth is but a sleep and a forgetting. {
source $SUPERHOME\core.vim
source $SUPERHOME\syntaxis.vim
source $SUPERHOME\statusline.vim
source $SUPERHOME\cddir.vim
source $SUPERHOME\http.vim
source $SUPERHOME\python_vim_fxns.vim
" }
" }}}
" Tips, not settings. {{{
" Note: there should be $HOME, $MYVIMRC environment variables pre-set.
" There should not be any other $SUPERHOME set.
" where was an option set
" :scriptnames : list all plugins, _vimrcs loaded (super)
" :verbose set history? : reveals value of history and where set
" :function : list functions
" :func SearchCompl : List particular function
" }}}