diff --git a/nvim/init.vim b/nvim/init.vim index fbbb72a..7a01761 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -13,7 +13,7 @@ let s:vim_plug_home = s:vim_config_dir . '/plugged' let s:just_installed_vim_plug = 0 if !filereadable(s:vim_plug_script) - execute '!curl -fL https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim --create-dirs -o' shellescape(s:vim_plug_script) + execute '!curl -fL https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim --create-dirs -o' shellescape(s:vim_plug_script, 1) autocmd VimEnter * PlugInstall --sync endif diff --git a/nvim/plugin/files.vim b/nvim/plugin/files.vim index da700db..2d8e228 100644 --- a/nvim/plugin/files.vim +++ b/nvim/plugin/files.vim @@ -13,11 +13,11 @@ nnoremap empty(&buftype) ? ":writewall\" : "\" let s:rg_ignore = split(&wildignore, ',') + [ \ 'node_modules', 'target', 'build', 'dist', '.stack-work' \ ] - let s:rg_cmd .= " --glob '!{'" . shellescape(join(s:rg_ignore, ',')) . "'}'" + let s:rg_cmd .= " --glob '!{'" . shellescape(join(s:rg_ignore, ','), 1) . "'}'" let &grepprg = s:rg_cmd . ' --vimgrep' let $FZF_DEFAULT_COMMAND = s:rg_cmd . ' --files' - command! -bang -nargs=* Rg call fzf#vim#grep(s:rg_cmd . ' --column --line-number --no-heading --fixed-strings --smart-case --color always ' . shellescape(), 1, 0) + command! -bang -nargs=* Rg call fzf#vim#grep(s:rg_cmd . ' --column --line-number --no-heading --fixed-strings --smart-case --color always ' . shellescape(, 1), 1, 0) command! -bang -nargs=* Find Rg endif @@ -26,13 +26,13 @@ nnoremap empty(&buftype) ? ":writewall\" : "\" function! s:grep_mapping_star_normal() let word = expand("") if !empty(word) - call feedkeys(":\grep " . shellescape('\b' . word . '\b'), 'n') + call feedkeys(":\grep " . shellescape('\b' . word . '\b', 1), 'n') endif endfunction function! s:grep_mapping_star_visual() let tmp = @" normal! y - call feedkeys(":\grep " . shellescape(@"), 'n') + call feedkeys(":\grep " . shellescape(@", 1), 'n') let @" = tmp endfunction nnoremap * call grep_mapping_star_normal() @@ -137,7 +137,7 @@ nnoremap empty(&buftype) ? ":writewall\" : "\" echoerr "Please install for the DragOut command to work." return endif - execute '!dragon-drag-and-drop '.shellescape(a:path) + execute '!dragon-drag-and-drop' shellescape(a:path, 1) endfunction command -nargs=* -complete=file DragOut call s:DragOut(empty() ? expand('%') : ) " }}}