-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.after
45 lines (32 loc) · 1.46 KB
/
.vimrc.after
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
nmap <C-n> :NERDTreeToggle<CR>
map <C-f> :NERDTreeFind<cr>
" map Caps Lock to ESC
map <Help> <Esc>
map! <Help> <Esc>
map <Insert> <Esc>
map! <Insert> <Esc>
" open NERDTree automatically when vim starts up if no files were specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" Remove trailing whitespaces when saving
autocmd BufWritePre * :%s/\s\+$//e
" Save whenever switching windows or leaving vim. This is useful when running
" the tests inside vim without having to save all files first.
au FocusLost,WinLeave * :silent! wa
" Trigger autoread when changing buffers or coming back to vim.
au FocusGained,BufEnter * :silent! !
" Allow JSX in normal JS files
let g:jsx_ext_required = 0
" Configure Syntastic to use ESLint
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_scss_checkers = ['']
" HTML5 tag support (brew install tidy-html5)
let g:syntastic_html_tidy_exec = '/usr/local/Cellar/tidy-html5/5.1.25'
" Suppress experimental decorators warnings with typescript
" let g:syntastic_typescript_tsc_args = "--experimentalDecorators --target es6"
autocmd BufRead,BufNewFile *.tsx setlocal syntax=javascript.jsx
" height of the location lists that syntastic
let g:syntastic_loc_list_height = 3
" show invisible spaces https://stackoverflow.com/questions/12814647/showing-single-space-invisible-character-in-vim
set listchars=tab:>\\,trail:·,extends:#,nbsp:.
let g:acp_enableAtStartup = 0