Skip to content

Instantly share code, notes, and snippets.

@jiroukaja
Last active December 17, 2015 00:29
Show Gist options
  • Save jiroukaja/5521161 to your computer and use it in GitHub Desktop.
Save jiroukaja/5521161 to your computer and use it in GitHub Desktop.
.vimrc for slimv & clisp [Mac] [homebrewer]
set nocompatible
syntax on
set number
set tags=$HOME/.vim/tags/lisp.tags
filetype off
set nocompatible " be iMproved
filetype plugin indent off " required!
if has('vim_starting')
set runtimepath+=$HOME/.vim/bundle/neobundle.vim
call neobundle#rc(expand($HOME.'/.vim/bundle/'))
endif
NeoBundle 'Shougo/neobundle.vim'
NeoBundle 'https://bitbucket.org/kovisoft/slimv'
filetype plugin on
filetype indent on
let g:paredit_mode=1
let g:paredit_electric_return = 0
function! s:generate_lisp_tags()
let g:slimv_ctags = 'ctags -a -f '.$HOME.'/.vim/tags/lisp.tags '.expand('%:p').' --language-force=Lisp'
call SlimvGenerateTags()
endfunction
command! -nargs=0 GenerateLispTags call <SID>generate_lisp_tags()
function! s:generate_lisp_tags_recursive()
let g:slimv_ctags = 'ctags -a -f '.$HOME.'/.vim/tags/lisp.tags -R '.expand('%:p:h').' --language-force=Lisp'
call SlimvGenerateTags()
endfunction
command! -nargs=0 GenerateLispTagsRecursive call <SID>generate_lisp_tags_recursive()
let g:slimv_repl_split = 4
let g:slimv_repl_name = 'REPL'
let g:slimv_repl_simple_eval = 0
let g:slimv_lisp = '/usr/local/bin/clisp'
let g:slimv_impl = 'clisp'
let g:slimv_preferred = 'clisp'
let g:slimv_swank_cmd = '!osascript -e "tell application \"Terminal\" to do script \"clisp '.$HOME.'/.vim/bundle/slimv/slime/start-swank.lisp\""'
let g:lisp_rainbow=1
autocmd BufNewFile,BufRead *.asd set filetype=lisp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment