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"""""""""""""""""""""""