[nvim] replace vmap mappings with xmap

This commit is contained in:
Dmytro Meleshko 2019-04-22 13:03:25 +03:00
parent 4088de0f21
commit 76758e8cdc
2 changed files with 3 additions and 3 deletions

View file

@ -99,8 +99,8 @@ set foldmethod=marker
let g:indexed_search_center = 1
" search inside a visual selection
vnoremap / <Esc>/\%><C-R>=line("'<")-1<CR>l\%<<C-R>=line("'>")+1<CR>l
vnoremap ? <Esc>?\%><C-R>=line("'<")-1<CR>l\%<<C-R>=line("'>")+1<CR>l
xnoremap / <Esc>/\%><C-R>=line("'<")-1<CR>l\%<<C-R>=line("'>")+1<CR>l
xnoremap ? <Esc>?\%><C-R>=line("'<")-1<CR>l\%<<C-R>=line("'>")+1<CR>l
" * and # in the Visual mode will search the selected text
function! s:VisualStarSearch(search_cmd)

View file

@ -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 <silent> gx :call netrw#BrowseX(expand('<cfile>'),netrw#CheckIfRemote())<CR>
vnoremap <silent> gx :<C-u>call netrw#BrowseXVis()<CR>
xnoremap <silent> gx :<C-u>call netrw#BrowseXVis()<CR>
" }}}