From 0eeaca7588626d1b23a1867d054d0064115cbda5 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 31 May 2023 17:08:48 +0200 Subject: [PATCH] Add more vim telescope mappings --- vim/plugin/shame.vim | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/vim/plugin/shame.vim b/vim/plugin/shame.vim index 3760e27..c9eb6b6 100644 --- a/vim/plugin/shame.vim +++ b/vim/plugin/shame.vim @@ -503,9 +503,11 @@ nnoremap ! :! " --- Telescope --- nnoremap f :Telescope find_files +nnoremap b :Telescope buffers nnoremap ld :Telescope lsp_definitions nnoremap lr :Telescope lsp_references nnoremap ll :Telescope lsp_ +nnoremap C :Telescope colorscheme " --- F5 --- nnoremap :nnoremap :CR> @@ -633,23 +635,23 @@ digraph ss 223 command! HLProgress syntax match Comment /\_.*\ze\n.*\%#/ -vnoremap g :call GrepOperator(visualmode()) -nnoremap g :set operatorfunc=GrepOperatorg@ -function! s:GrepOperator(type) - let reg1 = @@ - if a:type==# 'v' - execute "normal! `y" - elseif a:type==# 'char' - execute "normal! `[y`]" - else - return - end - echom "vimgrep! /\\M".escape(@@, "\\")."/ *" - silent! execute "vimgrep /\\M".escape(@@, "\\")."/j *" - let @@ = reg1 - copen - set nowrap -endfunction +" vnoremap g :call GrepOperator(visualmode()) +" nnoremap g :set operatorfunc=GrepOperatorg@ +" function! s:GrepOperator(type) +" let reg1 = @@ +" if a:type==# 'v' +" execute "normal! `y" +" elseif a:type==# 'char' +" execute "normal! `[y`]" +" else +" return +" end +" echom "vimgrep! /\\M".escape(@@, "\\")."/ *" +" silent! execute "vimgrep /\\M".escape(@@, "\\")."/j *" +" let @@ = reg1 +" copen +" set nowrap +" endfunction " Window Height stuff command! EqualH call Equal()