tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

Regex containing opening paren breaks evaluation #188

Closed kolman closed 9 years ago

kolman commented 9 years ago

Consider this code:

(clojure.string/split "abc(123)" #"\(")

Trying to evaluate it using cpp causes error:

Error detected while processing function 53_printop..53_opfunc: line 21: E20: Mark not set

Workarounds:

  1. Evaluate in visual mode (select expression, then :Eval)
  2. Use (re-pattern):
(clojure.string/split "abc(123)" (re-pattern "\\("))