-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
49 lines (39 loc) · 785 Bytes
/
.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
set nocompatible
set autoindent
set backspace=indent,eol,start
set history=50
set incsearch
set nobackup
set ruler
set showcmd
set term=xterm
syntax on
set hls
if has("autocmd")
filetype plugin indent on
augroup vimrcEx
au!
autocmd BufReadPost *
\ if line("'\'") > 0 && line("'\'") <= line("$") |
\ exe "normal g`\"" |
\ endif
autocmd END
else
set autoindent
endif
" get it from https://github.com/ctrlpvim/ctrlp.vim
set runtimepath^=~/.vim/bundle/ctrlp.vim
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': ['<c-t>', '<2-LeftMouse>'],
\ 'AcceptSelection("t")': ['<cr>'] }
set et
set ts=2
set sw=2
set nu
set laststatus=2
set statusline=[%c\ %l/%L\ %p%%]\ %r%m%f%=%b\ 0x%B
if &diff
colorscheme darkblue
endif
noremap n nzz
noremap N Nzz