Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Created March 30, 2009 04:03
Show Gist options
  • Select an option

  • Save ukstudio/87619 to your computer and use it in GitHub Desktop.

Select an option

Save ukstudio/87619 to your computer and use it in GitHub Desktop.
function! Fib(arg)
if a:arg == 0
return 0
elseif a:arg == 1 || a:arg == 2
return 1
else
return Fib(a:arg - 1) + Fib(a:arg - 2)
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment