Skip to content
This repository has been archived by the owner on Sep 1, 2019. It is now read-only.

Commit

Permalink
Some improvement on go syntax again
Browse files Browse the repository at this point in the history
  • Loading branch information
kouno committed Mar 3, 2015
1 parent 2033936 commit a20fc24
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
6 changes: 6 additions & 0 deletions vim/ftplugin/java.vim
@@ -0,0 +1,6 @@
" vim:ts=4:sw=4:et
setlocal noexpandtab
setlocal ts=4
setlocal sw=4
setlocal shiftwidth=4
setlocal softtabstop=4
8 changes: 4 additions & 4 deletions vim/snippets/go/default.snip
Expand Up @@ -23,13 +23,13 @@ abbr for i := range var { ... }
${2}
}

snippet func
snippet funcc
abbr func ...(...) { ... }
options head
func ${1:name}() {
}

snippet funcc
snippet funcd
abbr func () ... (...) { ... }
options head
func () ${1:name}() {
Expand All @@ -50,13 +50,13 @@ options head
${2}
}

snippet struct
snippet type
abbr type StructName struct { ... }
type ${1:name} struct {
${2}
}

snippet inter
snippet typei
abbr type interfaceName interface { ... }
type ${1:name} interface {
${2}
Expand Down
23 changes: 20 additions & 3 deletions vim/snippets/go/ginkgo.snip
@@ -1,14 +1,31 @@
snippet Desc
snippet desc
abbr Describe (...)
Describe("${1}", func() {
})

snippet It
snippet it
abbr It (...)
It("${1}", func() {
})

snippet Cont
snippet cont
abbr Context (...)
Context("${1}", func() {
})

snippet bef
abbr BeforeEach(...)
BeforeEach(func() {
${1}
})

snippet befs
abbr BeforeSuite(...)
BeforeSuite(func() {
${1}
})


snippet exp
abbr Expect(...)
Expect(${1}).To

0 comments on commit a20fc24

Please sign in to comment.