vim: screw list grep/files
This commit is contained in:
9
vimrc
9
vimrc
@@ -344,7 +344,6 @@ set noshowmode
|
||||
|
||||
|
||||
|
||||
set termguicolors
|
||||
set t_8f=[38:2::%lu:%lu:%lum
|
||||
set t_8b=[48:2::%lu:%lu:%lum
|
||||
|
||||
@@ -352,13 +351,9 @@ set t_8b=[48:2::%lu:%lu:%lum
|
||||
command -nargs=* C !g++ %:p <Args>
|
||||
command -nargs=* CR rightb 15split +term\ g++\ <Args>\ %:p\ &&\ ./a.out
|
||||
command R rightb 15split +term\ ./a.out
|
||||
command! -nargs=+ -complete=custom,s:GrepArgs G exe 'CocList --normal grep '.<q-args>
|
||||
command! -nargs=* G CocList --normal --auto-preview grep -folder <Args>
|
||||
command! -nargs=* F CocList --normal --auto-preview files -folder <Args>
|
||||
|
||||
function! s:GrepArgs(...)
|
||||
let list = ['-S', '-smartcase', '-i', '-ignorecase', '-w', '-word',
|
||||
\ '-e', '-regex', '-u', '-skip-vcs-ignores', '-t', '-extension']
|
||||
return join(list, "\n")
|
||||
endfunction
|
||||
|
||||
|
||||
function MyCDB(file)
|
||||
|
Reference in New Issue
Block a user