-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
58 lines (51 loc) · 1.74 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
execute pathogen#infect('~/.vim/bundle/{}')
syntax on
filetype plugin indent on
filetype plugin on
if $COLORTERM == 'gnome-terminal'
set term=gnome-256color
colorscheme peachpuff
else
colorscheme peachpuff
endif
set nowrap " don't wrap lines
set backspace=indent,eol,start
" allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set smarttab " insert tabs on the start of a line according to
" shiftwidth, not tabstop
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set nobackup
set noswapfile
set laststatus=2
set shiftwidth=2
set tabstop=2
set softtabstop=2
set expandtab
if exists('+colorcolumn')
set colorcolumn=80
else
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif
set runtimepath^=~/.vim/bundle/ag
set clipboard=unnamed
let g:ackprg = 'Ag --vimgrep'
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
" replace currently selected text with default register without yanking it
xnoremap p "_dP
let mapleader=","
xnoremap <leader>p "_dP
" vim-airline theme
let g:airline_theme='molokai'
" sparkup for *.js *.jsx
" open .vim/ftplugin, create javascript.vim and add "runtime! ftplugin/html/sparkup.vim"
" Improve ctrlp speed
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }