From 31dc9bb9dfd0abe7a7479d738490b8890f15c88a Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Fri, 16 Jan 2026 16:51:22 +0100 Subject: [PATCH] change c# error format --- vim/.vimrc | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 44873b5..7d88d36 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -3,20 +3,7 @@ try catch /^Vim\%((\a\+)\)\=:E185/ colorscheme monokai endtry -autocmd BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile -autocmd BufNewFile,BufRead *.h set filetype=c -autocmd BufWinEnter *.* silent! loadview -autocmd BufWinLeave *.* silent! mkview -autocmd FileType * setlocal indentexpr= -autocmd FileType csharp setlocal makeprg=dotnet -autocmd FileType go setlocal makeprg=go noexpandtab -autocmd FileType lua setlocal noexpandtab -autocmd FileType c setlocal noexpandtab nnoremap ,ct :!ctags -R . -augroup GoCtags - autocmd! - autocmd FileType go nnoremap ,ct :!ctags -R $(go env GOROOT) . -augroup END nnoremap ,rc :source $MYVIMRC autocmd FileType make setlocal noexpandtab @@ -112,3 +99,18 @@ nnoremap 'W 'W'" nnoremap 'X 'X'" nnoremap 'Y 'Y'" nnoremap 'Z 'Z'" + + +au FileType cs setlocal makeprg=dotnet errorformat=\ %#%f(%l\\,%c):\ error\ CS%n:\ %m +au BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile +au BufNewFile,BufRead *.h set filetype=c +au BufWinEnter *.* silent! loadview +au BufWinLeave *.* silent! mkview +au FileType * setlocal indentexpr= +au FileType go setlocal makeprg=go noexpandtab +au FileType lua setlocal noexpandtab +au FileType c setlocal noexpandtab +au GoCtags + autocmd! + autocmd FileType go nnoremap ,ct :!ctags -R $(go env GOROOT) . +augroup END