Skip to content

Instantly share code, notes, and snippets.

@hyuki
Created May 9, 2022 11:41
Show Gist options
  • Select an option

  • Save hyuki/6ea4772728bd2809502771de9f02dcfa to your computer and use it in GitHub Desktop.

Select an option

Save hyuki/6ea4772728bd2809502771de9f02dcfa to your computer and use it in GitHub Desktop.
MoveToJapanesePunctuation - よく使う記号類へ移動する
" よく使う記号類へ移動する
function MoveToJapanesePunctuation()
call feedkeys("/[、。?!・《》()『』「」]/)\<CR>", 'n')
endfunction
command -nargs=0 MoveToJapanesePunctuation call MoveToJapanesePunctuation()
nnoremap ) <ESC>:MoveToJapanesePunctuation<CR>
@hyuki
Copy link
Copy Markdown
Author

hyuki commented May 9, 2022

@hyuki
Copy link
Copy Markdown
Author

hyuki commented May 9, 2022

考えてみれば、関数にしたりせずに、

nnoremap ) /[、。?!・《》()『』「」]/<CR>

でいいのか……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment