forked from radareorg/radare2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vim
61 lines (52 loc) · 1.05 KB
/
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
"-----------------------------"
" copy this file to ~/.vimrc "
" or load it with :source vim "
"-----------------------------"
" my own indentation for C using the coding styles
set cindent
set tabstop=8
set noexpandtab
set smartindent
set cino=:0,+0,(2,J0,{1,}0,>4,)1,m2
" pancake's exposee for vim:
let fs=0
fun Exposee()
if (g:fs == 0)
res 1000
vertical res 1000
let g:fs=1
else
exe "normal \<C-W>="
let g:fs=0
endif
endfun
map <F10> :call Exposee()<cr>
"some nice keymappings
map <F1> :vsp<cr>
map <F2> :sp<cr>
map <F3> :sp<cr>:e .<cr>
map <F4> :q<cr>
map <F5> <C-W>=
map <F9> :make<cr>
map <C-F9> :cnext<cr>
map <S-F9> :cprevious<cr>
" fine zooming
map <C-J> 2<C-W>+
map <C-K> 2<C-W>-
map <C-L> 2<C-W>>
map <C-H> 2<C-W><
" fine frame moving
map <C-Y> <C-W>h
map <C-U> <C-W>j
map <C-I> <C-W>k
map <C-O> <C-W>l
au BufNewFile,BufRead *.vala setf cs
au BufNewFile,BufRead *.vapi setf cs
au BufNewFile,BufRead *.gtkaml setf cs
au BufNewFile,BufRead *.gtkon setf cs
filetype indent on
colorscheme pablo
set foldmethod=marker
set hlsearch
set paste
sy on