-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
56 lines (50 loc) · 2.07 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
execute pathogen#infect()
set t_Co=256
syntax on
filetype plugin indent on
colorscheme lucius
LuciusBlack
let mapleader=" " " leader is space
set backspace=2 " make backspace work like most other apps
set backspace=indent,eol,start
set tabstop=4 " number of visual spaces per TAB
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
set number " show line numbers
set showcmd " show command in bottom bar
set cursorline " highlight current line
set wildmenu " visual autocomplete for command menu
set lazyredraw " redraw only when we need to.
set showmatch " highlight matching [{()}]
set incsearch " search as characters are entered
set hlsearch " highlight matches
set ignorecase " case insensitive
set smartcase " use case if any caps used
set smarttab " insert tabs on the start of a line according to shiftwidth, not tabstop
set hidden " hides buffer instead of force :w before open a new file
set visualbell " don't beep
set noerrorbells " don't beep
set pastetoggle=<F2> " enable pastemode with F2
" easy navigation
nnoremap <leader><down> <C-W><C-J>
nnoremap <leader><up> <C-W><C-K>
nnoremap <leader><space> <C-W><C-W>
" highlight last inserted text
nnoremap gV `[v`]
" toggle gundo
nnoremap <leader>u :GundoToggle<CR>
" open ag.vim
nnoremap <leader>a :Ag
set runtimepath^=~/.vim/bundle/ag
" CtrlP settings
let g:ctrlp_match_window = 'bottom,order:ttb'
let g:ctrlp_switch_buffer = 0
let g:ctrlp_working_path_mode = 0
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set writebackup