mattn / vim-sonictemplate

Easy and high speed coding method
http://mattn.github.com/vim-sonictemplate
333 stars 42 forks source link

Add some snippet to go #40

Closed hiroakis closed 4 years ago

hiroakis commented 4 years ago

I used to add some snippet to vimrc like following until I found this repository. Could I add some of them to your repository?

autocmd FileType go imap <silent> <C-e><C-e><C-r> if err != nil {<CR>return err<CR>}
autocmd FileType go imap <silent> <C-d><C-d> time.Date(2006, 1, 2, 15, 4, 5, 0, time.Local)
...
mattn commented 4 years ago

Thank you.

FYI, you can expand if err != nil with err.fatal<c-y><c-b> too 😄