Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359587 - app-vim/slimv suggestion - SLIMV plugin for vim
Summary: app-vim/slimv suggestion - SLIMV plugin for vim
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 04:17 UTC by Anton Kochkov
Modified: 2011-03-22 23:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2011-03-20 04:17:18 UTC
Slimv tries to mimic a subset of SLIME's (Superior Lisp Interaction Mode for Emacs) functionality inside Vim on Linux, Windows and Mac OS X. The script defines functions and keybindings to send s-expressions to a console mode Lisp or Clojure REPL (Read-Eval-Print Loop). Slimv runs its own REPL or connects to a running REPL started by a previous Slimv session, the connection is established when the first Slimv command is executed (e.g. an s-expression is evaluated).

The Lisp REPL buffer can also be opened inside Vim as a Vim buffer with syntax highlighting and autoindenting, Lisp commands may be entered in the command line, just as in a regular REPL. The script also has a basic support for Clojure REPL.

Slimv supports the same profiling tool that comes with SLIME. The script also has a Common Lisp Hyperspec lookup feature and it is able to lookup symbols in the Clojure API, as well as in JavaDoc. Symbol name completion is supported via Vim's omni-completion based on the hyperspec symbol database.

Slimv comes with Paredit Mode, which is similar to the functionality of paredit.el in Emacs. Paredit Mode tries to maintain the balanced state of matched characters (parenthesis marks, square brackets, double quotes). Matched characters are inserted and removed in pairs, also when working with a block of text (well, mostly). Slimv also implements many paredit.el s-expression handling functions, like Split/Join/Wrap/Splice. Slurpage and Barfage known from Emacs is also possible but in a different fashion: you don't move the list element in or out of the list, rather you move the opening or closing parenthesis over the element or sub-list.

Source of the plugin located at http://www.vim.org/scripts/script.php?script_id=2531
Comment 1 Tim Harder gentoo-dev 2011-03-22 09:40:05 UTC
Added to CVS. Go hack on some Lisp in Vim. :)
Comment 2 Anton Kochkov 2011-03-22 21:25:01 UTC
Thanks!
Please, add any common lisps dependency as USE flags, not only clisp: sbcl, gcl, clisp, abcl, etc...
Comment 3 Tim Harder gentoo-dev 2011-03-22 21:29:24 UTC
(In reply to comment #2)
> Thanks!
> Please, add any common lisps dependency as USE flags, not only clisp: sbcl,
> gcl, clisp, abcl, etc...

USE flags? I don't think they'd be helpful at all, but I could add them as optional dependencies to the RDEPEND list after clojure and clisp.
Comment 4 Anton Kochkov 2011-03-22 22:15:16 UTC
Yes. Because now it depends on clisp, but if I'm always using sbcl and don't want use clisp - I'm thinking that (also because slimv support all Common Lisps) would be better provide optional dependencies on various Common Lisps
Comment 5 Tim Harder gentoo-dev 2011-03-22 22:25:29 UTC
(In reply to comment #4)
> Yes. Because now it depends on clisp, but if I'm always using sbcl and don't
> want use clisp - I'm thinking that (also because slimv support all Common
> Lisps) would be better provide optional dependencies on various Common Lisps

Done. I added the ones that weren't currently hardmasked in the tree. Namely abcl, clozurecl, ecls, and sbcl. Let me know if I forgot one that wasn't hardmasked and deprecated like gcl.
Comment 6 Anton Kochkov 2011-03-22 23:19:06 UTC
Looks like all supported lisps in the list.
Did you already pushed at the CVS?
Comment 7 Tim Harder gentoo-dev 2011-03-22 23:26:38 UTC
(In reply to comment #6)
> Looks like all supported lisps in the list.
> Did you already pushed at the CVS?

Yep, but didn't do any revision bump so you'll have to reinstall it to get the updated ebuild.