Skip to content

Commit

Permalink
🔨refactor:
Browse files Browse the repository at this point in the history
  • Loading branch information
utubo committed Dec 19, 2024
1 parent fb59574 commit 50c4ad3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .vim/autoload/vimrc/lazyload.vim
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,7 @@ xn g: "vy:<C-u><C-r>=@v<CR><CR>
xn g9 "vy:<C-u>vim9cmd <C-r>=@v<CR><CR>
nn <expr> <Space>hl $'<Cmd>hi {synID(line('.'), col('.'), 1)->synIDattr('name')->substitute('^$', 'Normal', '')}<CR>'
export def ToTail(a: string)
const p = getpos("']")
setpos('.', p)
getpos("']")->setpos('.')
enddef
no <SID>(ToTail) <ScriptCmd>set operatorfunc=vimrc#lazyload#ToTail<CR>g@
nm Ga <SID>(ToTail)a
Expand Down
3 changes: 1 addition & 2 deletions src/.vim/autoload/vimrc/lazyload.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,7 @@ nnoremap <expr> <Space>hl $'<Cmd>hi {synID(line('.'), col('.'), 1)->synIDattr('n
# ------------------------------------------------------
# テキストオブジェクトの末尾や先頭に移動 {{{
export def ToTail(type: string)
const p = getpos("']")
setpos('.', p)
getpos("']")->setpos('.')
enddef
noremap <SID>(ToTail) <ScriptCmd>set operatorfunc=vimrc#lazyload#ToTail<CR>g@
nmap Ga <SID>(ToTail)a
Expand Down

0 comments on commit 50c4ad3

Please sign in to comment.