mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] replace vmap mappings with xmap
This commit is contained in:
parent
4088de0f21
commit
76758e8cdc
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
" }}}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue