-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
128 lines (98 loc) · 2.72 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
set nocompatible
filetype off " required by Vundle
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
" let Vundle manage Vundle - required!
Bundle 'gmarik/vundle'
" My Bundles here:
" original repos on github
Bundle 'majutsushi/tagbar'
"Bundle 'fholgado/minibufexpl.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/nerdcommenter'
Bundle 'skwp/vim-conque'
Bundle 'tomasr/molokai'
Bundle 'altercation/vim-colors-solarized'
Bundle 'kien/ctrlp.vim'
Bundle 'sjl/badwolf'
"Bundle 'klen/python-mode'
"Bundle 'tpope/vim-fugitive'
"Bundle 'Lokaltog/vim-easymotion'
"Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
"Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'xoria256.vim'
"Bundle 'L9'
"Bundle 'FuzzyFinder'
" non github repos
"Bundle 'git://git.wincent.com/command-t.git'
filetype plugin indent on " required!
set mouse=a
set exrc " enable per-directory .vimrc files
set secure " disable unsafe commands in local .vimrc files
set vb
set fileformat:unix
set fileencoding:utf-8
set tabstop:8
set softtabstop:4
set shiftwidth:4
set expandtab
set autoindent
" Unindent of actual line
imap <S-Tab> <Esc> < i
set t_Co=256
colorscheme molokai
" colorscheme solarized
" colorscheme xoria256
set background:dark
set colorcolumn:80
syn on
set nu
set ruler
set ignorecase
set smartcase
set nowrap
" Allow backspacing over everything in insert mode
set backspace=indent,eol,start
set dir=/tmp
set incsearch
set hlsearch
highlight ExtraWhitespace ctermbg=white guibg=white
match ExtraWhitespace /\s\+$/
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
autocmd FileType yml setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
"inoremap <c-k> <up>
"inoremap <c-j> <down>
"inoremap <c-h> <left>
"inoremap <c-l> <right>
let mapleader = ","
set pastetoggle=<F2>
""""""""""""""""""""""""
" Plugin configuration "
""""""""""""""""""""""""
" Compiling
nmap <F10> :make clean<CR>:make<CR>
" Ctrlp
nmap <leader>t :CtrlP<CR>
nmap <leader>b :CtrlPBuffer<CR>
let g:ctrlp_mruf_last_entered = 1 " Preselect last used buffer in <leader>b
" Nerd commenter
filetype plugin on
" NerdTree
nmap <F7> :NERDTreeToggle<CR>
" Tagbar
nmap <F8> :TagbarToggle<CR>
let g:tagbar_left=1
" Conque
nmap <F6> :ConqueTerm bash<CR>
" Refresh ctags
nmap <F5> :! ctags --links=no -R<CR>
" MinibufExpl
"let g:miniBufExplMapCTabSwitchBufs = 1 "Map control-tab and control-shift-tab for switching between buffers
"let g:miniBufExplUseSingleClick = 1 "Change buffer with single click on a buffer