Created
January 4, 2011 13:49
-
-
Save h1mesuke/764780 to your computer and use it in GitHub Desktop.
Vim - My snippets for Scheme
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
# Snippets for Scheme | |
snippet shebang | |
#!/usr/bin/env gosh | |
snippet modeline | |
; vim: filetype=scheme | |
#---------------------------------------------------------------------------- | |
# Abbrevs | |
snippet ap | |
(append ${1} | |
snippet ca | |
(car ${1} | |
snippet cd | |
(cdr ${1} | |
snippet co | |
(cons ${1} | |
snippet d | |
(display ${1} | |
snippet error | |
alias err | |
(error "${1}"${0} | |
snippet ei | |
(exact->inexact ${1} | |
snippet ie | |
(inexact->exact ${1} | |
snippet fi | |
(filter ${1} | |
snippet li | |
(list ${1} | |
snippet lr | |
(list-ref ${1} | |
snippet ma | |
(map ${1} | |
snippet nil | |
'() | |
snippet nl | |
(newline) | |
snippet nu | |
(null? ${1} | |
snippet p | |
(print ${1} | |
snippet pa | |
(pair? ${1} | |
snippet sn | |
(string->number ${1} | |
#---------------------------------------------------------------------------- | |
# Special Forms | |
snippet begin | |
alias beg | |
(begin | |
${0} | |
snippet cond | |
alias con | |
(cond (${0} | |
snippet define | |
alias defi | |
(define ${1} | |
snippet define-proc | |
alias def | |
(define (${1:name}) | |
${0} | |
snippet if | |
(if ${1} | |
snippet lambda | |
alias la | |
(lambda (${1:args})${0} | |
snippet let | |
(let ((${1:var} | |
snippet main | |
(define (main args) | |
${0} | |
# vim: filetype=snippet: sw=2: ts=2: expandtab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment