aboutsummaryrefslogtreecommitdiff
path: root/vim/.vim/ftplugin/racket.vim
blob: a648670686a137575ff5d87dae3df4e52b683d27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
" Racket related config
" Last Changed: 2019-07-18
" Author: Federico Igne <>
" License: This file is placed in the public domain.

if get(g:,'loaded_slime',0)
    " Use SLIME plugin to load the current file into the REPL
    " NOTE: this only works if the REPL cwd and the file directory are
    " the same (passing an absolute path does not work).
    nnoremap <leader>cr :call slime#send("(enter! \"" . expand("%:t") . "\")\r")<cr>
endif