Split and add javascriptreact.

This commit is contained in:
Gea-Suan Lin
2023-03-02 14:32:25 +08:00
parent 49c5f090f8
commit d50609cdb9

View File

@@ -106,7 +106,8 @@ au BufNewFile,BufRead *.rb set shiftwidth=2
au BufNewFile,BufRead GNUmakefile set noexpandtab au BufNewFile,BufRead GNUmakefile set noexpandtab
au BufNewFile,BufRead Makefile set noexpandtab au BufNewFile,BufRead Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
au FileType javascript,json,yaml set shiftwidth=2 au FileType javascript,javascriptreact set shiftwidth=2
au FileType json,yaml set shiftwidth=2
autocmd BufEnter * silent! lcd %:p:h autocmd BufEnter * silent! lcd %:p:h
autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg" autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"
map <C-n> :NERDTreeToggle<CR> map <C-n> :NERDTreeToggle<CR>