Set noexpandtab for go files.

This commit is contained in:
Gea-Suan Lin
2024-01-13 18:53:35 +08:00
parent 0cec1864a8
commit e3d4b4652a

View File

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