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.
我在 vim 中遇到了标记问题。我写了以下快捷方式:
noremap <Leader>i magg=G`a<CR>
问题是当我使用它时,光标会跳到下一行,有时还会跳到左边的几个字符。为什么会这样?
因为您通过在末尾添加 <CR> 来告诉它。