-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
67 lines (67 loc) · 1.66 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
call plug#begin('~/.vim/plugged')
Plug 'altercation/vim-colors-solarized'
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'w0rp/ale'
Plug 'leshill/vim-json'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'editorconfig/editorconfig-vim'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-commentary'
Plug 'terryma/vim-multiple-cursors'
Plug 'ervandew/supertab'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-eunuch'
Plug 'jiangmiao/auto-pairs'
Plug 'drn/zoomwin-vim'
Plug 'wakatime/vim-wakatime'
call plug#end()
"add column number
set number
"make searches case-insensitive
set ignorecase
"change color theme to solarized
syntax enable
set background=dark
colorscheme solarized
"set updatetime to 250ms
set updatetime=250
"only enable javascript eslint linter for ale
let g:ale_linters = {
\ 'javascript': ['eslint']
\}
"auto fix errors on save
let g:ale_fix_on_save = 1
"set fixer to eslint
let g:ale_fixers = {
\ 'javascript': ['eslint'],
\}
"set solarized theme for vim-airline
let g:airline_theme='solarized'
"hide the commandline and use vim-airline instead
set noshowmode
"let vim-airline handle errors in statusline
let g:airline#extensions#ale#enabled = 1
"set tab/spaces default
set tabstop=2
"when indenting with '>', use 2 space width
set shiftwidth=2
"on pressing tab, insert 2 space
set expandtab
" Disable Arrow keys in Escape mode
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
" Disable Arrow keys in Insert mode
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
" mouse enable in vim
set mouse=a
" set clipboard to macosx clipboard
set clipboard=unnamed
" let nerdtree show hidden files
let NERDTreeShowHidden=1