From 6453547f6a06cf6701bac4201727a57a3e62c52f Mon Sep 17 00:00:00 2001 From: h-east Date: Thu, 7 Aug 2025 20:51:09 +0900 Subject: [PATCH] Update filetype.{txt,jax} --- doc/filetype.jax | 16 +++++++++++++--- en/filetype.txt | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/doc/filetype.jax b/doc/filetype.jax index 88562e1d0..a77d7336f 100644 --- a/doc/filetype.jax +++ b/doc/filetype.jax @@ -1,4 +1,4 @@ -*filetype.txt* For Vim バージョン 9.1. Last change: 2025 May 10 +*filetype.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06 VIMリファレンスマニュアル by Bram Moolenaar @@ -1057,8 +1057,18 @@ TYPST *ft-typst-plugin* < VIM *ft-vim-plugin* -Vim ファイルタイププラグインは、[[ および ]] で関数の先頭および末尾に移動する -ためのマッピングを定義する。コメントの周辺には ]" および [" で移動する。 +Vim ファイルタイププラグインは以下のマッピングを定義する: + + [[ 前の関数の先頭に移動する + ]] 次の関数の先頭に移動する + ][ 前の関数の末尾に移動する + [] 次の関数の末尾に移動する + ]" 次の (旧来の) コメントに移動する + [" 前の (旧来の) コメントに移動する + gf カーソル下のファイルを編集する + CTRL-W gf カーソル下のファイルを新しいタブページで編集する + CTRL-W f カーソル下のファイルを新しいウィンドウで編集する + このマッピングは以下のようにして無効化することができる: > let g:no_vim_maps = 1 diff --git a/en/filetype.txt b/en/filetype.txt index 63d7b030e..13007488d 100644 --- a/en/filetype.txt +++ b/en/filetype.txt @@ -1,4 +1,4 @@ -*filetype.txt* For Vim version 9.1. Last change: 2025 May 10 +*filetype.txt* For Vim version 9.1. Last change: 2025 Aug 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1063,8 +1063,18 @@ To disable: > < VIM *ft-vim-plugin* -The Vim filetype plugin defines mappings to move to the start and end of -functions with [[ and ]]. Move around comments with ]" and [". +The Vim filetype plugin defines the following mappings: + + [[ move to the start of the previous function + ]] move to the start of the next function + ][ move to the end of the previous function + [] move to the end of the next function + ]" move to the next (legacy) comment + [" move to the previous (legacy) comment + gf edit the file under the cursor + CTRL-W gf edit the file under the cursor in a new tab + CTRL-W f edit the file under the cursor in a new window + The mappings can be disabled with: > let g:no_vim_maps = 1