From 50c4ad301999d7c107821bf4bd98e612056368ec Mon Sep 17 00:00:00 2001 From: utubo Date: Thu, 19 Dec 2024 10:26:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8refactor:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vim/autoload/vimrc/lazyload.vim | 3 +-- src/.vim/autoload/vimrc/lazyload.src.vim | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.vim/autoload/vimrc/lazyload.vim b/.vim/autoload/vimrc/lazyload.vim index ef524b7..a222786 100644 --- a/.vim/autoload/vimrc/lazyload.vim +++ b/.vim/autoload/vimrc/lazyload.vim @@ -406,8 +406,7 @@ xn g: "vy:=@v xn g9 "vy:vim9cmd =@v nn hl $'hi {synID(line('.'), col('.'), 1)->synIDattr('name')->substitute('^$', 'Normal', '')}' export def ToTail(a: string) -const p = getpos("']") -setpos('.', p) +getpos("']")->setpos('.') enddef no (ToTail) set operatorfunc=vimrc#lazyload#ToTailg@ nm Ga (ToTail)a diff --git a/src/.vim/autoload/vimrc/lazyload.src.vim b/src/.vim/autoload/vimrc/lazyload.src.vim index 42eb19a..6631144 100644 --- a/src/.vim/autoload/vimrc/lazyload.src.vim +++ b/src/.vim/autoload/vimrc/lazyload.src.vim @@ -596,8 +596,7 @@ nnoremap hl $'hi {synID(line('.'), col('.'), 1)->synIDattr('n # ------------------------------------------------------ # テキストオブジェクトの末尾や先頭に移動 {{{ export def ToTail(type: string) - const p = getpos("']") - setpos('.', p) + getpos("']")->setpos('.') enddef noremap (ToTail) set operatorfunc=vimrc#lazyload#ToTailg@ nmap Ga (ToTail)a