mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 20:41:31 +01:00
vim: add keywordprg config, override K
hit K to run a ripgrep search on the word under the cursor. This leverages fzf.vim
This commit is contained in:
parent
43426f7ac5
commit
c231afe36e
|
@ -155,3 +155,5 @@ let @b = 'obreakpoint(
|
|||
vnoremap <silent> <leader>k :call VisualSelection('LAck', '')<CR>
|
||||
vnoremap <silent> <leader>gs :call GitShowVisual()<CR>
|
||||
vnoremap <silent> <leader>r :call VisualSelection('replace', '')<CR>
|
||||
|
||||
nnoremap K :exe "Rg " . expand("<cword>")<cr>
|
||||
|
|
|
@ -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 "\(/\*\)\|\(\*/\)"
|
||||
|
|
Loading…
Reference in New Issue
Block a user