首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
mgdrum
›
全部回复第 1 页 / 共 1 页
回复总数
4
72 天前
回复了
Retas
创建的主题
›
Vim
›
VSCode vim 插件在 o 换行后,退出插入模式会丢失所有缩进的问题
看错了,我以为是 vscode-neovim
72 天前
回复了
Retas
创建的主题
›
Vim
›
VSCode vim 插件在 o 换行后,退出插入模式会丢失所有缩进的问题
我也遇到了,后来是通过调用 vscode 命令解决的
-- 在当前行之后插入新行并调用 VSCode 的缩进命令
-- 在当前行之后插入新行并进入插入模式,因为 neovim 的 o 命令会扰乱缩进
vim.api.nvim_set_keymap('n', 'o', ':call VSCodeNotify("editor.action.insertLineAfter")<CR>i', {
noremap = true,
silent = true
})
-- 在当前行之前插入新行并进入插入模式
vim.api.nvim_set_keymap('n', 'O', ':call VSCodeNotify("editor.action.insertLineBefore")<CR>i', {
noremap = true,
silent = true
})
2023-08-03 22:53:39 +08:00
回复了
undertow
创建的主题
›
生活
›
求美剧推荐
怪奇物语
2023-08-03 22:50:04 +08:00
回复了
isCyan
创建的主题
›
V2EX
›
攻略:教你如何在 V2EX 发图片/插链接/插代码/插视频(第二版)
[Imgur](
https://i.imgur.com/QshjUWy.png
)
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
5753 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms ·
UTC 02:03
·
PVG 10:03
·
LAX 19:03
·
JFK 22:03
Developed with
CodeLauncher
♥ Do have faith in what you're doing.