-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
66 lines (55 loc) · 1.57 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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'L9'
Plugin 'pangloss/vim-javascript'
Plugin 'crusoexia/vim-javascript-lib'
Plugin 'mxw/vim-jsx'
Plugin 'tomtom/tcomment_vim'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'airblade/vim-gitgutter'
Plugin 'dhruvasagar/vim-table-mode'
Plugin 'Valloric/YouCompleteMe'
Plugin 'posva/vim-vue'
Plugin 'kien/ctrlp.vim'
Plugin 'sheerun/vim-polyglot'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'tpope/vim-abolish'
Plugin 'prettier/vim-prettier'
call vundle#end()
filetype indent plugin on
let g:jsx_ext_required = 0
let g:indent_guides_guide_size = 1
let g:indent_guides_color_change_percent = 3
let g:indent_guides_enable_on_vim_startup = 1
let g:table_mode_corner="|"
set autoindent
set expandtab
set shiftwidth=2
set softtabstop=2
set guifont=Consolas:h14
set statusline=""
set nu
set noruler
set noshowmode
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
" keep at least 5 lines below the cursor
set scrolloff=5
:let mapleader = ","
" automatic js and vue formatting
let g:prettier#autoformat = 0
autocmd BufWritePre *.js,*.css,*.less,*.scss,*.vue Prettier
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*pycache*,*/node_modules/* " MacOSX/Linux
syntax on
colorscheme monokai
set termguicolors
if exists('+colorcolumn')
highlight ColorColumn ctermbg=235 guibg=#2c2d27
set colorcolumn=72
else
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>59v.\+', -1)
endif