slime/lisp and vim

59 views
Skip to first unread message

jml

unread,
Sep 18, 2013, 7:46:26 PM9/18/13
to vim...@googlegroups.com
Hi there,

I am trying to learn LISP from within VIM and saw that it might be possible.
I downloaded slime for vim:

Then I manually installed everything, but it doesn't seem to work.
In the instruction set, it says that I need to have python enabled within vim, but when I type

:python import sys; print(sys.version)

from within VIM, it tells me
"E319: Sorry, the command is not available in this version"

Is there anything I can do to test further?
I may have missed something more obvious in terms of slime's install...

Any help would be appreciated.

jml

jml

unread,
Sep 18, 2013, 7:47:30 PM9/18/13
to vim...@googlegroups.com

Yuma Antoine Decaux

unread,
Sep 18, 2013, 8:45:20 PM9/18/13
to vim...@googlegroups.com
To all who developed vim for mac.

I am a blind software engineering student and have been struggling to find the right coding environment. I tried macvim last week on counts of my friends recommending it, and once i turned core text renderer off, though visual mode is not accessible to me, all the other key commands do, which has really increased my capacity to navigate around code lengthier than 500 lines. The experience is like jumping from a physical dial nokia to the iphone 5S. This is awesome. And the more commands i learn, the better it gets. thank you guys for this application.

Now on for a few comments, haha :)

1-voice over related:

I've noticed that when reading through lines, vim does not read out the last character, such as ; for endss of statements. It's not too bad as i can just $i then check if the closure is there but i thought i would mention this.
2-When (i assume) the text reaches the bottom of the visible area, vim has some difficulty scrolling further down. I use the /'string' command to jump around, but when i'm in a block of code but it happens to be at the bottom of the visible area, then either the up/down arrow or j or k get clunky. To note, the system alert sound triggers so i'm assuming this also happens to visual coders. Am i doing something wrong here?

Apart from the above, everything is smooth. Obviously, i'm not a power user yet so my requests might not be technical, but this might help for other blind coders out there.


Best regards,

Yuma

chadhs

unread,
Sep 19, 2013, 9:54:08 AM9/19/13
to vim...@googlegroups.com
On Wednesday, September 18, 2013 7:47:30 PM UTC-4, jml wrote:
> > I downloaded slime for vim:
>
> http://www.vim.org/scripts/script.php?script_id=2531

I'm currently working on Common–Lisp on my Mac as well. Download Slimv as you already have and install "sbcl" via Homebrew. Steel Bank Common–Lisp is definitely the way to go as it's based on Carnegie Mellon University's Common Lisp. See this Lisp FAQ here: http://random-state.net/files/nikodemus-cl-faq.html

With those two things installed you should be all set! The default mapping is your leader key followed by e then b to "eval buffer", which will launch a "SWANK" server via Terminal.app, and then execute the lisp code and print the result back to a split in your vim environment.

Hope that helps some. =)

Bram Moolenaar

unread,
Sep 19, 2013, 11:41:34 AM9/19/13
to Yuma Antoine Decaux, vim...@googlegroups.com

Yuma Antoine Decaux wrote:

> To all who developed vim for mac.
>
> I am a blind software engineering student and have been struggling to
> find the right coding environment. I tried macvim last week on counts
> of my friends recommending it, and once i turned core text renderer
> off, though visual mode is not accessible to me, all the other key
> commands do, which has really increased my capacity to navigate around
> code lengthier than 500 lines. The experience is like jumping from a
> physical dial nokia to the iphone 5S. This is awesome. And the more
> commands i learn, the better it gets. thank you guys for this
> application.
>
> Now on for a few comments, haha :)
>
> 1-voice over related:
>
> I've noticed that when reading through lines, vim does not read out
> the last character, such as ; for endss of statements. It's not too
> bad as i can just $i then check if the closure is there but i thought
> i would mention this.

Just guessing: Perhaps setting 'virtualedit' to "onemore" helps:
:set ve=onemore

> 2-When (i assume) the text reaches the bottom of the visible area, vim
> has some difficulty scrolling further down. I use the /'string'
> command to jump around, but when i'm in a block of code but it happens
> to be at the bottom of the visible area, then either the up/down arrow
> or j or k get clunky. To note, the system alert sound triggers so i'm
> assuming this also happens to visual coders. Am i doing something
> wrong here?

Perhaps you want to use CTRL-E?

> Apart from the above, everything is smooth. Obviously, i'm not a power
> user yet so my requests might not be technical, but this might help
> for other blind coders out there.

--
hundred-and-one symptoms of being an internet addict:
234. You started college as a chemistry major, and walk out four years
later as an Internet provider.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

estebahn fallhallah

unread,
Sep 19, 2013, 10:29:18 PM9/19/13
to vim...@googlegroups.com
It _definitely_ helps some...  
I DL'd and everything is installed (I _think_, although it's hard for me to ascertain whether or not slime is actually installed correctly).

Can you give me a quick hello world ref for this usage?

I'm not aware of what my leader key would be (n00b; sorry).
I tried typing

:((0 1 2)(3 4 5)) eb

to no avail...

Thanks...
jml

estebahn fallhallah

unread,
Sep 19, 2013, 10:31:23 PM9/19/13
to vim...@googlegroups.com
also...
is this any different?

jml

On Sep 19, 2013, at 6:54 AM, chadhs wrote:

--
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to a topic in the Google Groups "vim_mac" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_mac/daM6gLoDrJI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_mac+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yuma Antoine Decaux

unread,
Sep 20, 2013, 4:21:16 AM9/20/13
to Bram Moolenaar, vim...@googlegroups.com
Hi,

Seems like control-e doesn't work. 

As for settings for vim, i'm not sure how to start yet. Will get to it this weekend.

Cheers,

Yuma 



"Light has no value without darkness"


Shriphani Palakodety

unread,
Sep 20, 2013, 4:34:46 AM9/20/13
to vim...@googlegroups.com
Yuma,

I am not very experienced in this area but I was wondering if you considered Emacspeak : (http://emacspeak.sourceforge.net/releases/release-38.0.html).

This is not to knock vim or anything but Emacspeak won the ACM dissertation award for its author.

Shriphani


--
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+u...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
PhD Candidate at Carnegie Mellon University,
http://shriphani.com/
http://github.com/shriphani

Yuma Antoine Decaux

unread,
Sep 20, 2013, 8:04:15 PM9/20/13
to vim...@googlegroups.com
Hi Shriphani,

I'm aware about emacspeak, but emacs might be part of my coding environment later down the road as it requires a lot of configuring just to get the speech going when i can run emacs on my mac os terminal and pretty much get the same result with the os's default voices.

If there is a 64-bit GUI version of emacs though, i'm all for giving it a try.


Cheers,

Yuma 




"Light has no value without darkness"



Niklas Lindström

unread,
Sep 30, 2013, 3:26:02 AM9/30/13
to vim...@googlegroups.com
Hello,

It seems :python is not available in your version of Vim. Do you know which version you have installed?

AFAIK, both the default /usr/bin/vim that comes with OS X and MacVim.app have Python compiled in by default.

Cheers,
Niklas



Reply all
Reply to author
Forward
0 new messages