Created
September 29, 2014 09:46
-
-
Save simeji/e4bcb9ce3b5df296bfc8 to your computer and use it in GitHub Desktop.
vim-sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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