8

IdeaVim 重写了 vimscript 执行引擎,将 vimscript 当成一个真正的语言去执行而不是之...

 3 years ago
source link: https://www.v2ex.com/t/802476
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

IdeaVim 重写了 vimscript 执行引擎,将 vimscript 当成一个真正的语言去执行而不是之前那种只读取 set、map 之类的配置;另外更换了版本号命名策略,版本号直接从 0.69 飙到 1.7.0

  Leviathann · 44 分钟前 · 117 次点击

https://github.com/JetBrains/ideavim/discussions/357

也就是说现在 .ideavimrc 里可以写函数了
官方给的示例

function! IsThisFive(number)
  if a:number == 5
      return "This is five"
  else
      return "This is not five"
  endif
endfunction

在 ex line 执行:echo IsThisFive(3)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK