-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
92 lines (70 loc) · 1.58 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
let mapleader=","
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'mattn/emmet-vim'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'airblade/vim-gitgutter'
Plugin 'rking/ag.vim'
Plugin 'valloric/youcompleteme'
Plugin 'sheerun/vim-polyglot'
call vundle#end()
filetype plugin indent on
syntax enable
set background=dark
set hidden
set nowrap
set expandtab
set tabstop=2
set backspace=indent,eol,start
set autoindent
set number
set shiftwidth=2
set shiftround
set showmatch
set ignorecase
set smartcase
set smarttab
set hlsearch
set incsearch
set cursorline
set t_Co=256
set history=1000
set undolevels=1000
set wildignore=*.swp,*.bak,*.pyc,*.class
set title
"set visualbell
set noerrorbells
set relativenumber
set nobackup
set noswapfile
set list
set listchars=tab:>.,trail:.,extends:#,nbsp:.
set pastetoggle=<F2>
nnoremap j gj
nnoremap k gk
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
set showcmd
set foldmethod=marker
set wildmenu
nnoremap ; :
nnoremap : ;
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:jsx_ext_required = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:ycm_autoclose_preview_window_after_completion = 1
autocmd BufEnter *.png,*.jpg,*.jpeg,*gif,*.ico exec "! ~/.iterm2/imgcat ".expand("%") | :bw
let g:flow#autoclose = 1
if executable('ag')
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""'
endif