Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以更改进入<c-g>'s 输出的内容?具体来说,我想将电流添加filetype到输出中。
<c-g>
filetype
您可以通过使用映射重载命令来做到这一点。由于:file与 相同<C-g>,因此我们使用它;它为我们节省了:normal:
:file
<C-g>
:normal
:nnoremap <silent> <C-g> :file<Bar>echon ' ' &filetype<CR>