Skip to content

Commit

Permalink
Move repl bindings after setfiletype
Browse files Browse the repository at this point in the history
  • Loading branch information
kotarak committed Jul 4, 2010
1 parent ab27f14 commit 32d9991
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions autoload/vimclojure.vim
Expand Up @@ -706,16 +706,6 @@ function! vimclojure#Repl.Init(instance, namespace) dict
setlocal buftype=nofile
setlocal noswapfile

if !hasmapto("<Plug>ClojureReplEnterHook")
imap <buffer> <silent> <CR> <Plug>ClojureReplEnterHook
endif
if !hasmapto("<Plug>ClojureReplUpHistory")
imap <buffer> <silent> <C-Up> <Plug>ClojureReplUpHistory
endif
if !hasmapto("<Plug>ClojureReplDownHistory")
imap <buffer> <silent> <C-Down> <Plug>ClojureReplDownHistory
endif

call append(line("$"), ["Clojure", a:instance._prompt . " "])

let replStart = vimclojure#ExecuteNail("Repl", "-s",
Expand All @@ -729,6 +719,16 @@ function! vimclojure#Repl.Init(instance, namespace) dict

setfiletype clojure

if !hasmapto("<Plug>ClojureReplEnterHook")
imap <buffer> <silent> <CR> <Plug>ClojureReplEnterHook
endif
if !hasmapto("<Plug>ClojureReplUpHistory")
imap <buffer> <silent> <C-Up> <Plug>ClojureReplUpHistory
endif
if !hasmapto("<Plug>ClojureReplDownHistory")
imap <buffer> <silent> <C-Down> <Plug>ClojureReplDownHistory
endif

normal! G
startinsert!
endfunction
Expand Down

0 comments on commit 32d9991

Please sign in to comment.