-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
44 lines (37 loc) · 1.05 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
execute pathogen#infect()
set tags=tags;/
set tabstop=4 shiftwidth=4 expandtab
set ruler
set paste
autocmd FileType php set omnifunc=phpcomplete#CompletePHP colorcolumn=80
autocmd FileType python set colorcolumn=80
autocmd FileType cpp set omnifunc=omni#cpp#complete#Main
autocmd FileType ruby set tabstop=2|set shiftwidth=2|set expandtab
autocmd BufRead,BufNewFile *.yml setl sw=2 sts=2 et
let mapleader = "\<Space>"
let Tlist_GainFocus_On_ToggleOpen = 1
nnoremap <Leader>mf :Mru
nnoremap <Leader>mr :Mru<CR>
nnoremap <Leader>t :tabe %:p:h<CR>
nnoremap <Leader>g :TlistToggle<CR>
nnoremap <Leader>e :Ex<CR>
nnoremap <Leader>q :q<CR>
nnoremap <Leader>1 1gt<CR>
nnoremap <Leader>2 2gt<CR>
nnoremap <Leader>3 3gt<CR>
nnoremap <Leader>4 4gt<CR>
nnoremap <Leader>5 5gt<CR>
nnoremap <Leader>6 6gt<CR>
nnoremap <Leader>7 7gt<CR>
if filereadable(expand("~/.vim.custom"))
so ~/.vim.custom
endif
function! MoeeExploreDir(dir)
if isdirectory(expand('%:p'))
execute 'edit ' . a:dir
else
execute 'tabe ' . a:dir
endif
endfunction
filetype plugin indent on
syntax on