Hello,

I would like to note that I am fairly new to Clojure and its ecosystem,
so please forgive me if I ask pretty basic questions. :)

Given that I am just learing I tried to set up my developing tools first
and am quite happy with my setup, but have one annoying problem. I am
using vim with VimClojure, but am not able to omnicomplete anything in
clojure.contrib. Even c.c<C-X-C-O> does not offer clojure.contrib. Do
you have any idea what I can do to resolve this problem?

I guess it is some problem with my configuration, so here is how I
configured vim + vimclojure + nailgun:

= vim + vundle =

$ git clone http://github.com/gmarik/vundle.git ~/.vim/vundle.git

Add the following to the beginning of ~/.vimrc:

    set nocompatible

    " scripts
    " -------

    set rtp+=~/.vim/vundle.git/ 
    call vundle#rc()

    Bundle "FooBar"
    Bundle "VimClojure"
    Bundle "...

    filetype plugin indent on

    ...

= Cake =

$ git clone https://github.com/ninjudd/cake.git /path/to/cake
$ ln -s /path/to/cake/bin/cake ~/bin/cake
$ cake new

= vimclojure/server =

$ $EDITOR ~/.cake/project.clj

    Add to :dependencies

        [vimclojure/server "2.3.0-SNAPSHOT"]

$ cake deps --global
$ $EDITOR ~/.cake/tasks.clj

    Add:

        (defn start-ng-server [host] 
              (bake (:import vimclojure.nailgun.NGServer) 
                                      [host host] 
                                      (vimclojure.nailgun.NGServer/main 
(into-array [host])))) 
        (deftask ng #{} 
                            "Start the nailgun server." 
                            (start-ng-server "127.0.0.1")
$ cake ng

= vimclojure/client =

$ hg clone https://bitbucket.org/kotarak/vimclojure /path/to/vimclojure
$ cd /path/to/vimclojure/client
$ make
$ ln -s /path/to/vimclojure/client/ng ~/bin/ng

= vim =

$ $EITOR ~/.vimrc
    
    Add:
        
        " plugins
        " -------
        " Vimclojure

        let g:vimclojure#HighlightBuiltins=1
        let g:vimclojure#ParenRainbow=1
        let g:vimclojure#DynamicHighlighting=1
        let vimclojure#NailgunClient = "/home/user/bin/ng"
        let vimclojure#WantNailgun = 1

    *adjust "user" in the path above*
-- 
  .''`.     Wolodja Wentland    <wolodja.wentl...@ed.ac.uk> 
 : :'  :    
 `. `'`     4096R/CAF14EFC 
   `-       081C B7CD FF04 2BA9 94EA  36B2 8B7F 7D30 CAF1 4EFC

Attachment: signature.asc
Description: Digital signature

Reply via email to