Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created May 4, 2014 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hail2u/e884157c6060ff4b426d to your computer and use it in GitHub Desktop.
Save hail2u/e884157c6060ff4b426d to your computer and use it in GitHub Desktop.
vim cannot name function prefix with colon
Error detected while processing **************************:
line 1:
E128: Function name must start with a capital or "s:": test:func()
This is a test.
line 3:
E193: :endfunction not inside a function
function! test:func()
echo 'This is a test'
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment