Skip to content

Commit

Permalink
ENH: Neutralize overridding x/omap on if
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHermitte committed Feb 23, 2024
1 parent 19c793d commit 8bffd56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugin/boundaries.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
" Version: 2.0.0
let s:k_version = '2.0.0'
" Created: 25th May 2016
" Last Update: 16th Jan 2019
" Last Update: 23rd Feb 2024
"------------------------------------------------------------------------
" Description:
" Select function boundaries
Expand All @@ -27,8 +27,11 @@ let g:loaded_boundaries = s:k_version
" Avoid global reinclusion }}}1
"------------------------------------------------------------------------
" Commands and Mappings {{{1
onoremap <silent> if :<c-u>call lh#dev#_select_current_function()<cr>
xnoremap <silent> if :<c-u>call lh#dev#_select_current_function()<cr><esc>gv
onoremap <silent> <Plug>(lhdev-select-function) :<c-u>call lh#dev#_select_current_function()<cr>
xnoremap <silent> <Plug>(lhdev-select-function) :<c-u>call lh#dev#_select_current_function()<cr><esc>gv
silent call lh#mapping#plug('if', '<Plug>(lhdev-select-function)', 'ox')

" Commands and Mappings }}}1
"------------------------------------------------------------------------
" Functions {{{1
Expand Down

0 comments on commit 8bffd56

Please sign in to comment.