From 76758e8cdc3a8e5878ce7c75f6ca996973b620b5 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Mon, 22 Apr 2019 13:03:25 +0300 Subject: [PATCH] [nvim] replace vmap mappings with xmap --- nvim/lib/editing.vim | 4 ++-- nvim/lib/files.vim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nvim/lib/editing.vim b/nvim/lib/editing.vim index 652a942..cc3d1f2 100644 --- a/nvim/lib/editing.vim +++ b/nvim/lib/editing.vim @@ -99,8 +99,8 @@ set foldmethod=marker let g:indexed_search_center = 1 " search inside a visual selection - vnoremap / /\%>=line("'<")-1l\%<=line("'>")+1l - vnoremap ? ?\%>=line("'<")-1l\%<=line("'>")+1l + xnoremap / /\%>=line("'<")-1l\%<=line("'>")+1l + xnoremap ? ?\%>=line("'<")-1l\%<=line("'>")+1l " * and # in the Visual mode will search the selected text function! s:VisualStarSearch(search_cmd) diff --git a/nvim/lib/files.vim b/nvim/lib/files.vim index 829af98..df493ca 100644 --- a/nvim/lib/files.vim +++ b/nvim/lib/files.vim @@ -25,7 +25,7 @@ set wildignore+=.git,.svn,.hg,.DS_Store,*~ let g:loaded_netrwPlugin = 1 " re-add Netrw's gx mappings since we've disabled them nnoremap gx :call netrw#BrowseX(expand(''),netrw#CheckIfRemote()) - vnoremap gx :call netrw#BrowseXVis() + xnoremap gx :call netrw#BrowseXVis() " }}}