-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
61 lines (44 loc) · 1.28 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
" Change <Leader>
let mapleader = ","
" Set temporary directory (don't litter local dir with swp/tmp files)
set directory=/tmp/
if !has("gui_running")
set term=xterm
endif
" Explicitly set 256 color support
set t_Co=256
colorscheme ekvoli
set number
filetype plugin indent on
" Tab navigation
nmap <leader>tn :tabnext<CR>
nmap <leader>tp :tabprevious<CR>
nmap <leader>te :tabedit
" External Buffers
map ;y "+y
map ;p "+P
" Special Mapping to Leave Insert Mode
" See http://vim.wikia.com/wiki/Avoid_the_escape_key
imap ;; <Esc>
" Shortcuts
nmap <leader>glp :GitLog -p<CR>
nmap <leader>gb :GitBlame<CR>
map <leader>gsr :Shell git svn rebase<CR>
map <leader>gsd :Shell git svn dcommit<CR>
" http://vimcasts.org/episdoes/show-invisibles
"set listchars=tab:▸\ ,eol:¬
"nmap <leader>l :set list!<CR>
"set list
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
map <leader>ts :set ts=2 sts=2 sw=2 expandtab<CR>
" Additional Configs
runtime! configs/nerdtree.vim
runtime! configs/shell.vim
runtime! configs/statusline.vim
runtime! configs/search.vim
set nocp