这是一个创建于 4639 天前的主题,其中的信息可能已经有所发展或是发生改变。
autocmd filetype go setlocal noexpandtab
autocmd filetype go map <F5> :!go run %<CR>
autocmd filetype go imap <F5> <Esc><F9>
autocmd filetype go set formatprg=gofmt
求将命令部分合并的办法
5 条回复 • 1970-01-01 08:00:00 +08:00
![qiukun](https://cdn.v2ex.com/avatar/b0da/9d8d/9607_normal.png?m=1333338478) |
|
2
qiukun 2012-05-27 16:22:53 +08:00
@ cfddream 目前使用 | 链接,也找到用函数包起来的方法,不知道您怎么看?
|
![qiukun](https://cdn.v2ex.com/avatar/b0da/9d8d/9607_normal.png?m=1333338478) |
|
3
qiukun 2012-05-27 16:28:46 +08:00
@ cfddream 此外 doc 里面 也是帖子中的 style,大概是考虑到有块操作吧,我过早优化了
|
![reaky](https://cdn.v2ex.com/avatar/cc02/d42b/8196_normal.png?m=1334922337) |
|
5
reaky 2012-05-27 18:49:07 +08:00
不是有ftplugin吗?在里面建个go.vim, 然后都写进去就好了
|