【问题标题】:How to insert one character into current buffer from a function如何从函数将一个字符插入当前缓冲区
【发布时间】:2020-04-14 18:39:08
【问题描述】:

我找到了如何将行从函数插入到当前缓冲区: Insert text into current buffer from function

但是,如何在当前缓冲区的光标位置插入 一个 字符(不插入换行符作为副作用)?

【问题讨论】:

    标签: vim


    【解决方案1】:

    最简单的方法是使用normal

    norm!ic
    

    i 启动插入模式,之后你可以输入你想要的。

    【讨论】:

      猜你喜欢
      • 2014-08-01
      • 2022-11-12
      • 1970-01-01
      • 1970-01-01
      • 2011-08-05
      • 2011-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多