diff --git a/vim/.vimrc b/vim/.vimrc index 7aa152d..861dd34 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -5,7 +5,13 @@ autocmd BufWinLeave *.* silent! mkview autocmd FileType * setlocal indentexpr= autocmd FileType csharp setlocal makeprg=dotnet autocmd FileType go setlocal makeprg=go 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 autocmd FileType python setlocal makeprg=basedpyright autocmd FileType yaml setlocal tabstop=2 @@ -17,7 +23,6 @@ nnoremap ,cl :clast nnoremap ,co :copen nnoremap ,cq :call setqflist([]):cclose nnoremap ,cr :cnewer -nnoremap ,ct :!ctags -R . nnoremap ,cu :colder nnoremap ,h H nnoremap ,l L