Skip to content

Instantly share code, notes, and snippets.

@simeji
Created September 29, 2014 09:46
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 simeji/e4bcb9ce3b5df296bfc8 to your computer and use it in GitHub Desktop.
Save simeji/e4bcb9ce3b5df296bfc8 to your computer and use it in GitHub Desktop.
vim-sample
" function sample
function TestFunction(a,b,c)
echo a:a
echo a:b
echo a:c
endfunction
" 引数の設定
com -nargs=+ TestFunc call TestFunction(<f-args>)
" mapping
nmap <c-a> :TestFunc hoge moge fuga<cr>
" :call TestFunction('aaa','bbb','ccc')
" として実行もしてみましょう
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment