diff --git a/vim/shortcuts.vim b/vim/shortcuts.vim index f965f1f..ea71c4e 100644 --- a/vim/shortcuts.vim +++ b/vim/shortcuts.vim @@ -155,3 +155,5 @@ let @b = 'obreakpoint( vnoremap k :call VisualSelection('LAck', '') vnoremap gs :call GitShowVisual() vnoremap r :call VisualSelection('replace', '') + +nnoremap K :exe "Rg " . expand("") diff --git a/vim/vimrc b/vim/vimrc index f653692..5b8bac8 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -60,6 +60,7 @@ autocmd FileType vue setlocal shiftwidth=2 softtabstop=2 expandtab autocmd FileType go setlocal noexpandtab makeprg=go\ build autocmd FileType rust set makeprg=cargo\ build +autocmd FileType python set keywordprg="pydoc" syntax match jsonComment "//.*" syntax match jsonComment "\(/\*\)\|\(\*/\)"