ardagnir / pterosaur

All firefox text fields are vim.
GNU Affero General Public License v3.0
772 stars 30 forks source link

not working on OSx #15

Closed aesadde closed 10 years ago

aesadde commented 10 years ago

Tried to use it on OSX (Yosemite)

I have XQuartz, vim 7.4 +clientserver. I've installed vimbed and pterosaur as explained but nothing seems to work. I can run firefox with pentadactyl no problem but if I try to use pterosaur it won't let me type any key!

ardagnir commented 10 years ago

Can you try the steps in the Troubleshooting section of the readme and let me know the results of steps 3, 4, and 5?

Thanks!

aesadde commented 10 years ago

Yes. Step 3 is ok, it show +clientserver. Although for steps 4 and 5 no output is shown so I'm guessing it is not activating the server?

ardagnir commented 10 years ago

If you run firefox from a terminal and :set pterosaurdebug, pterosaur will send your text to vim on terminal whether or not vim's server is working.

It sounds like vim itself isn't loading (this could happen if +clientserver isn't compiled in, but probably not for other clientserver issues).

Can you:

aesadde commented 10 years ago

Here are the outputs:

ps -e | grep vim

 3397 ttys000    0:00.01 /bin/sh -c (while [ -p /tmp/vimbed/pterosaur_8cae929a/fifo ]; do sleep 10; done) > /tmp/vimbed/pterosaur_8cae929a/fifo
 3398 ttys000    0:00.01 /bin/sh -c TERM=xterm vim --servername pterosaur_8cae929a +'call Vimbed_SetupVimbed("","")' </tmp/vimbed/pterosaur_8cae929a/fifo >/dev/null
 3400 ttys000    0:00.00 /bin/sh -c (while [ -p /tmp/vimbed/pterosaur_8cae929a/fifo ]; do sleep 10; done) > /tmp/vimbed/pterosaur_8cae929a/fifo
 3401 ttys000    0:00.86 /usr/local/Cellar/macvim/7.4-73/MacVim.app/Contents/MacOS/Vim --servername pterosaur_8cae929a +call Vimbed_SetupVimbed("","")
 3556 ttys001    0:00.00 grep vim
!vim --servername pterosaur
Vim: Warning: Output is not to a terminal Vim: Warning: Input is not from a terminal [?1000h[?1049h[?1h=[?12;25h[?12l[?25h[?1000l?Vim: Error reading input, exiting... Vim: Finished. ]2;Thanks for flying Vim  shell returned 1

:messages E492: Not a Pentadactyl command: pterosaur

ardagnir commented 10 years ago

Apparently MacVim modified vim to support a special MacVim clientserver so that you wouldn't need XQuartz, but it only works for the gui version.

For pterosaur you're going to need regular old vim with +clientserver, sorry. :(

(If you're wondering how to get that: http://stackoverflow.com/questions/10231223/compile-vim-7-3-with-clientserver-feature-on-mac-os-x)

I'll add a note to the readme warning people about this.