mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update xmap for visual mode mappings
This commit is contained in:
parent
1856ee39e6
commit
6322fed221
@ -119,7 +119,7 @@ nnoremap <silent> <leader>sv :<C-U>silent update $MYVIMRC <bar> source $MYVIMRC
|
|||||||
nnoremap <expr> <leader>v printf('`[%s`]', getregtype()[0])
|
nnoremap <expr> <leader>v printf('`[%s`]', getregtype()[0])
|
||||||
|
|
||||||
" Search in selected region
|
" Search in selected region
|
||||||
vnoremap / :<C-U>call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l")<CR>
|
xnoremap / :<C-U>call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l")<CR>
|
||||||
|
|
||||||
" Find and replace (like Sublime Text 3)
|
" Find and replace (like Sublime Text 3)
|
||||||
nnoremap <C-H> :%s/
|
nnoremap <C-H> :%s/
|
||||||
@ -211,7 +211,7 @@ nnoremap <Right> <C-W>l
|
|||||||
nnoremap <Up> <C-W>k
|
nnoremap <Up> <C-W>k
|
||||||
nnoremap <Down> <C-W>j
|
nnoremap <Down> <C-W>j
|
||||||
|
|
||||||
vnoremap <silent> iu :<C-U>call <SID>URLTextObj()<CR>
|
xnoremap <silent> iu :<C-U>call <SID>URLTextObj()<CR>
|
||||||
onoremap <silent> iu :<C-U>call <SID>URLTextObj()<CR>
|
onoremap <silent> iu :<C-U>call <SID>URLTextObj()<CR>
|
||||||
|
|
||||||
function! s:URLTextObj() abort
|
function! s:URLTextObj() abort
|
||||||
|
|||||||
@ -536,7 +536,7 @@ if g:is_win || g:is_mac
|
|||||||
|
|
||||||
" Use another mapping for the open URL method
|
" Use another mapping for the open URL method
|
||||||
nmap ob <Plug>(openbrowser-smart-search)
|
nmap ob <Plug>(openbrowser-smart-search)
|
||||||
vmap ob <Plug>(openbrowser-smart-search)
|
xmap ob <Plug>(openbrowser-smart-search)
|
||||||
endif
|
endif
|
||||||
"}}
|
"}}
|
||||||
|
|
||||||
@ -579,7 +579,7 @@ augroup END
|
|||||||
let g:titlecase_map_keys = 0
|
let g:titlecase_map_keys = 0
|
||||||
|
|
||||||
nmap <leader>gt <Plug>Titlecase
|
nmap <leader>gt <Plug>Titlecase
|
||||||
vmap <leader>gt <Plug>Titlecase
|
xmap <leader>gt <Plug>Titlecase
|
||||||
nmap <leader>gT <Plug>TitlecaseLine
|
nmap <leader>gT <Plug>TitlecaseLine
|
||||||
|
|
||||||
""""""""""""""""""""""""vim-auto-save settings"""""""""""""""""""""""
|
""""""""""""""""""""""""vim-auto-save settings"""""""""""""""""""""""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user