From 618995cc7f1893648df9d5f38ab49edfed024ca0 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Fri, 5 Feb 2021 11:54:51 +0200 Subject: [PATCH] [nvim] add functions to workaround some interesting behaviors of vim --- nvim/plugin/editing.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvim/plugin/editing.vim b/nvim/plugin/editing.vim index 817f7cc..c042cd2 100644 --- a/nvim/plugin/editing.vim +++ b/nvim/plugin/editing.vim @@ -152,6 +152,11 @@ set commentstring=//%s \|xmap # call VisualStarSearch('?')N augroup END + " + command! -nargs=+ Search let @/ = escape(, '/') | normal // + " + command! -nargs=+ SearchLiteral let @/ = '\V'.escape(, '/\') | normal // + " }}}