Hi,

Am 13.03.2009 um 09:08 schrieb MattH:

I noticed that the <C-Up> and <C-Down> key bindings used for the
history navigation work fine in MacVim.app, but not from the terminal
in OS X.

I don't use Vim in a terminal anymore. The I don't do much testing there.

So for any VimClojurians on OS X with the same problem, suggested
workarounds:
- use MacVim.app, or

+1 Definitively a good idea!

- add alternative mappings in autoload/vimclojure.vim
(look for "imap <buffer> <silent> <C-Up> <Plug>ClojureReplUpHistory",
and substitute <C-Up> for another key)

It shouldn't be necessary to edit the VimClojure files directly.
You can put the following in your .vimrc.

function SetupMyVCRepl()
    imap <buffer> <silent> <your-key-here> <Plug>ClojureReplUpHistory
    imap <buffer> <silent> <your-key-here> <Plug>ClojureReplDownHistory
endfunction

autocmd FileType * if &ft == "clojure" && exists("b:vimclojure_repl") | call SetupMyVCRepl() | endif

This should work (at least it did when I tested it). If there is already
a binding VimClojure will skip the default. And this is more robust
against updates.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to