forked from scottdavis/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
72 lines (62 loc) · 1.61 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
"
" dotvim : https://github.com/dotphiles/dotvim
"
" Setup vim and load required plugins before dotvim
"
" Authors:
" Ben O'Hara <bohara@gmail.com>
"
" Call dotvim
source ~/dotfiles/vimfiles/dotvim.vim
source ~/dotfiles/vimfiles/autowatch.vim
if has("user_commands")
set nocompatible
filetype off
set rtp+=~/dotfiles/vimfiles/bundle/vundle/
call vundle#begin()
let g:vundles=['general', 'programming', 'php', 'ruby', 'python', 'javascript', 'html', 'misc', 'clojure']
"let g:vundles=['general', 'programming']
let g:acp_enableAtStartup = 0
" Load 'vundles'
source ~/dotfiles/vimfiles/vundles.vim
" Add extra bundles here...
" Bundle 'reponame'
call vundle#end()
filetype plugin indent on
endif
" Customize to your needs...
set foldenable
set foldlevelstart=99
set foldmethod=indent
" Tabs
set expandtab
set tabstop=4
set shiftwidth=4
set expandtab
" for moving between split windows with ease:
" up one window, maximized
map <C-j> <C-w>j<C-w>80+
" down one window, maximized
map <C-k> <C-w>k<C-w>80+
" maximize current window
map <C-h> <C-w>80+
" all windows equal height
map <C-i> <C-w>=
" bump size
map <Leader><Left> :vertical resize -15<cr><Leader>
map <Leader><Right> :vertical resize +15<cr><Leader>
map <Leader><S-Up> :vertical resize 15><cr><Leader>
map <Leader><S-Down> :vertical resize 15<<cr><Leader>
function! OutdoorMode()
colorscheme github
endfunction
function! NormalMode()
colorscheme twilight256
endfunction
command! OutdoorMode :call OutdoorMode()
command! NormalMode :call NormalMode()
set pastetoggle=<F2>
nmap <F8> :TagbarToggle<CR>
syntax enable
filetype plugin indent on
filetype on