随笔分类 - vim
摘要:LDoc是一个Lua的文档生成工具,详细介绍见,LDoc的Github主页,但是在vim中手写注释较为复杂,然后看了下vim script,自己写了一款vim插件,用于自动生成模块注释,类型注释和函数注释,方便开发。将此文件命名为ldoc.vim放在~/.vim/plugin目录下使用:将光标移动到...
阅读全文
摘要:转载自One of vim's nice features is a powerful diff tool that can be used to easily tell the differences between multiple different files. This can be ca...
阅读全文
摘要:修改ctags对lua的支持增加对protobuf的支持将下面代码保存到~/.ctags文件,然后重新使用ctags,就会使用该文件中注册语言处理对应文件--langdef=MYLUA--langmap=MYLUA:.lua--regex-MYLUA=/^local[ \t]+([a-zA-Z0-9...
阅读全文

浙公网安备 33010602011771号