From 6322fed22155b2c784ddf68bfb3e4b2c6fed09e2 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 12 Nov 2020 21:31:48 +0800 Subject: [PATCH] update xmap for visual mode mappings --- core/mappings.vim | 4 ++-- core/plugins.vim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/mappings.vim b/core/mappings.vim index eb6ebef..81646f7 100644 --- a/core/mappings.vim +++ b/core/mappings.vim @@ -119,7 +119,7 @@ nnoremap sv :silent update $MYVIMRC source $MYVIMRC nnoremap v printf('`[%s`]', getregtype()[0]) " Search in selected region -vnoremap / :call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l") +xnoremap / :call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l") " Find and replace (like Sublime Text 3) nnoremap :%s/ @@ -211,7 +211,7 @@ nnoremap l nnoremap k nnoremap j -vnoremap iu :call URLTextObj() +xnoremap iu :call URLTextObj() onoremap iu :call URLTextObj() function! s:URLTextObj() abort diff --git a/core/plugins.vim b/core/plugins.vim index cf4d3e6..346f6c2 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -536,7 +536,7 @@ if g:is_win || g:is_mac " Use another mapping for the open URL method nmap ob (openbrowser-smart-search) - vmap ob (openbrowser-smart-search) + xmap ob (openbrowser-smart-search) endif "}} @@ -579,7 +579,7 @@ augroup END let g:titlecase_map_keys = 0 nmap gt Titlecase -vmap gt Titlecase +xmap gt Titlecase nmap gT TitlecaseLine """"""""""""""""""""""""vim-auto-save settings"""""""""""""""""""""""