|
@@ -104,6 +104,17 @@ nnoremap <LEADER>gid :read !date +\%Y-\%m-\%d<CR>kJ
|
|
|
nnoremap <LEADER>gdu :%s/<C-Q><C-M>//g<CR>
|
|
|
|
|
|
|
|
|
+" Search and Replace {{{
|
|
|
+function! GrepHelper()
|
|
|
+ if stridx(&grepprg, 'findstr') == 0
|
|
|
+ nnoremap <LEADER>f :grep /s /p <LT>pattern> <LT>dir>| "for windows findstr
|
|
|
+ else
|
|
|
+ nnoremap <LEADER>f :grep -r <LT>pattern> <LT>dir>| "for grep
|
|
|
+ endif
|
|
|
+endfunction
|
|
|
+call GrepHelper()
|
|
|
+" }}}
|
|
|
+
|
|
|
" Copy Pasta {{{
|
|
|
|
|
|
" Registers
|