commands.vim 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. " -- gorename
  2. command! -nargs=? -complete=customlist,go#rename#Complete GoRename call go#rename#Rename(<bang>0, <f-args>)
  3. " -- guru
  4. command! -nargs=* -complete=customlist,go#package#Complete GoGuruScope call go#guru#Scope(<f-args>)
  5. command! -range=% GoImplements call go#guru#Implements(<count>)
  6. command! -range=% GoWhicherrs call go#guru#Whicherrs(<count>)
  7. command! -range=% GoCallees call go#guru#Callees(<count>)
  8. command! -range=% GoDescribe call go#guru#Describe(<count>)
  9. command! -range=% GoCallers call go#guru#Callers(<count>)
  10. command! -range=% GoCallstack call go#guru#Callstack(<count>)
  11. command! -range=% GoFreevars call go#guru#Freevars(<count>)
  12. command! -range=% GoChannelPeers call go#guru#ChannelPeers(<count>)
  13. command! -range=% GoReferrers call go#guru#Referrers(<count>)
  14. command! -range=0 GoSameIds call go#guru#SameIds()
  15. command! -range=0 GoSameIdsClear call go#guru#ClearSameIds()
  16. command! -range=0 GoSameIdsToggle call go#guru#ToggleSameIds()
  17. command! -range=0 GoSameIdsAutoToggle call go#guru#AutoToogleSameIds()
  18. " -- tags
  19. command! -nargs=* -range GoAddTags call go#tags#Add(<line1>, <line2>, <count>, <f-args>)
  20. command! -nargs=* -range GoRemoveTags call go#tags#Remove(<line1>, <line2>, <count>, <f-args>)
  21. " -- tool
  22. command! -nargs=* -complete=customlist,go#tool#ValidFiles GoFiles echo go#tool#Files(<f-args>)
  23. command! -nargs=0 GoDeps echo go#tool#Deps()
  24. command! -nargs=* GoInfo call go#tool#Info(0)
  25. command! -nargs=0 GoAutoTypeInfoToggle call go#complete#ToggleAutoTypeInfo()
  26. " -- cmd
  27. command! -nargs=* -bang GoBuild call go#cmd#Build(<bang>0,<f-args>)
  28. command! -nargs=? -bang GoBuildTags call go#cmd#BuildTags(<bang>0, <f-args>)
  29. command! -nargs=* -bang GoGenerate call go#cmd#Generate(<bang>0,<f-args>)
  30. command! -nargs=* -bang -complete=file GoRun call go#cmd#Run(<bang>0,<f-args>)
  31. command! -nargs=* -bang GoInstall call go#cmd#Install(<bang>0, <f-args>)
  32. " -- test
  33. command! -nargs=* -bang GoTest call go#test#Test(<bang>0, 0, <f-args>)
  34. command! -nargs=* -bang GoTestFunc call go#test#Func(<bang>0, <f-args>)
  35. command! -nargs=* -bang GoTestCompile call go#test#Test(<bang>0, 1, <f-args>)
  36. " -- cover
  37. command! -nargs=* -bang GoCoverage call go#coverage#Buffer(<bang>0, <f-args>)
  38. command! -nargs=* -bang GoCoverageClear call go#coverage#Clear()
  39. command! -nargs=* -bang GoCoverageToggle call go#coverage#BufferToggle(<bang>0, <f-args>)
  40. command! -nargs=* -bang GoCoverageBrowser call go#coverage#Browser(<bang>0, <f-args>)
  41. " -- play
  42. command! -nargs=0 -range=% GoPlay call go#play#Share(<count>, <line1>, <line2>)
  43. " -- def
  44. command! -nargs=* -range GoDef :call go#def#Jump('')
  45. command! -nargs=? GoDefPop :call go#def#StackPop(<f-args>)
  46. command! -nargs=? GoDefStack :call go#def#Stack(<f-args>)
  47. command! -nargs=? GoDefStackClear :call go#def#StackClear(<f-args>)
  48. " -- doc
  49. command! -nargs=* -range -complete=customlist,go#package#Complete GoDoc call go#doc#Open('new', 'split', <f-args>)
  50. command! -nargs=* -range -complete=customlist,go#package#Complete GoDocBrowser call go#doc#OpenBrowser(<f-args>)
  51. " -- fmt
  52. command! -nargs=0 GoFmt call go#fmt#Format(-1)
  53. command! -nargs=0 GoFmtAutoSaveToggle call go#fmt#ToggleFmtAutoSave()
  54. command! -nargs=0 GoImports call go#fmt#Format(1)
  55. " -- asmfmt
  56. command! -nargs=0 GoAsmFmtAutoSaveToggle call go#asmfmt#ToggleAsmFmtAutoSave()
  57. " -- import
  58. command! -nargs=? -complete=customlist,go#package#Complete GoDrop call go#import#SwitchImport(0, '', <f-args>, '')
  59. command! -nargs=1 -bang -complete=customlist,go#package#Complete GoImport call go#import#SwitchImport(1, '', <f-args>, '<bang>')
  60. command! -nargs=* -bang -complete=customlist,go#package#Complete GoImportAs call go#import#SwitchImport(1, <f-args>, '<bang>')
  61. " -- linters
  62. command! -nargs=* GoMetaLinter call go#lint#Gometa(0, <f-args>)
  63. command! -nargs=0 GoMetaLinterAutoSaveToggle call go#lint#ToggleMetaLinterAutoSave()
  64. command! -nargs=* GoLint call go#lint#Golint(<f-args>)
  65. command! -nargs=* -bang GoVet call go#lint#Vet(<bang>0, <f-args>)
  66. command! -nargs=* -complete=customlist,go#package#Complete GoErrCheck call go#lint#Errcheck(<f-args>)
  67. " -- alternate
  68. command! -bang GoAlternate call go#alternate#Switch(<bang>0, '')
  69. " -- decls
  70. command! -nargs=? -complete=file GoDecls call go#decls#Decls(0, <q-args>)
  71. command! -nargs=? -complete=dir GoDeclsDir call go#decls#Decls(1, <q-args>)
  72. " -- impl
  73. command! -nargs=* -complete=customlist,go#impl#Complete GoImpl call go#impl#Impl(<f-args>)
  74. " -- template
  75. command! -nargs=0 GoTemplateAutoCreateToggle call go#template#ToggleAutoCreate()
  76. " -- keyify
  77. command! -nargs=0 GoKeyify call go#keyify#Keyify()
  78. " -- fillstruct
  79. command! -nargs=0 GoFillStruct call go#fillstruct#FillStruct()
  80. " -- debug
  81. if !exists(':GoDebugStart')
  82. command! -nargs=* -complete=customlist,go#package#Complete GoDebugStart call go#debug#Start(<f-args>)
  83. command! -nargs=? GoDebugBreakpoint call go#debug#Breakpoint(<f-args>)
  84. endif
  85. " vim: sw=2 ts=2 et