随笔分类 -  vim

摘要:LDoc是一个Lua的文档生成工具,详细介绍见,LDoc的Github主页,但是在vim中手写注释较为复杂,然后看了下vim script,自己写了一款vim插件,用于自动生成模块注释,类型注释和函数注释,方便开发。将此文件命名为ldoc.vim放在~/.vim/plugin目录下使用:将光标移动到... 阅读全文
posted @ 2015-01-16 00:06 滑板鞋 阅读(1322) 评论(0) 推荐(0)
摘要:转载自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... 阅读全文
posted @ 2015-01-14 10:51 滑板鞋 阅读(944) 评论(0) 推荐(0)
摘要:修改ctags对lua的支持增加对protobuf的支持将下面代码保存到~/.ctags文件,然后重新使用ctags,就会使用该文件中注册语言处理对应文件--langdef=MYLUA--langmap=MYLUA:.lua--regex-MYLUA=/^local[ \t]+([a-zA-Z0-9... 阅读全文
posted @ 2015-01-14 00:30 滑板鞋 阅读(789) 评论(0) 推荐(0)