runtime(vim): add gf support for import and packadd in ftplugin

closes: #17881

Signed-off-by: lacygoill <lacygoill@lacygoill.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
lacygoill
2025-08-06 13:37:12 +02:00
committed by Christian Brabandt
parent 9340aa1bf8
commit c0b3c19120
3 changed files with 175 additions and 3 deletions

View File

@ -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