Change vim search & replace mapping
This commit is contained in:
parent
93f683b5d3
commit
aed80c1bab
|
@ -19,7 +19,7 @@ if has('termguicolors')
|
|||
let s:green = "88b888"
|
||||
let s:red = "ef2929"
|
||||
|
||||
let s:text = "e9e9e9"
|
||||
let s:text = "f1f1f1"
|
||||
|
||||
let s:foreground = s:text
|
||||
let s:background = "08363c"
|
||||
|
|
|
@ -233,3 +233,31 @@ souvlaki
|
|||
relatability
|
||||
zen
|
||||
todo
|
||||
hotloader
|
||||
MSAA
|
||||
FBO
|
||||
multisampled
|
||||
blit
|
||||
multisample
|
||||
UVs
|
||||
msaa
|
||||
uv
|
||||
FXAA
|
||||
async
|
||||
mouseover
|
||||
checkbox
|
||||
supersampling
|
||||
u16
|
||||
premultiplying
|
||||
mip
|
||||
mips
|
||||
mem
|
||||
u32
|
||||
proc
|
||||
hardcode
|
||||
hotloading
|
||||
win32
|
||||
ui
|
||||
weapon
|
||||
fov
|
||||
exe
|
||||
|
|
Binary file not shown.
12
vimrc
12
vimrc
|
@ -961,7 +961,13 @@ nnoremap <expr> p (&buftype is# "quickfix" ? "<CR>\|:copen<CR>" : "p")
|
|||
function! GlobalReplaceIt(confirm_replacement)
|
||||
if exists(':Ggrep')
|
||||
call inputsave()
|
||||
let l:term = input('Enter search term: ')
|
||||
|
||||
if a:confirm_replacement
|
||||
let l:term = input('Enter search term (w/ confirmation): ')
|
||||
else
|
||||
let l:term = input('Enter search term (no confirmation): ')
|
||||
endif
|
||||
|
||||
call inputrestore()
|
||||
if empty(l:term)
|
||||
return
|
||||
|
@ -986,8 +992,8 @@ function! GlobalReplaceIt(confirm_replacement)
|
|||
echo "Unable to search since you're not in a git repo"
|
||||
endif
|
||||
endfunction
|
||||
map <leader>gg :call GlobalReplaceIt(0)<cr>
|
||||
map <leader>gr :call GlobalReplaceIt(1)<cr>
|
||||
map <leader>r :call GlobalReplaceIt(0)<cr>
|
||||
map <leader>rr :call GlobalReplaceIt(1)<cr>
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
|
Loading…
Reference in New Issue
Block a user