Using SLIMV to code Lisp, how do I insert a single " without disabling paredit.vim?

1k Views Asked by At

I need to write the following line of code:

((eq item #\") (do-this...))

But everytime I type ", I get "". I've read the paredit.vim doc file but it's not clear how to insert a single pair character (be it ", (, or [), and whether doing it breaks paredit for that function. Any experts have a way around this?

2

There are 2 best solutions below

2
On BEST ANSWER

I'm the author of Slimv. I have fixed this problem, so after \ the " character is not doubled. Please fetch the latest paredit.vim from the Slimv repository: https://bitbucket.org/kovisoft/slimv/

1
On

Type ,( to toggle the paredit mode in SLIMV before typing the character. Source: slimv.vim.

Similar in emacs, where you can use C-q followed by the character to insert a single pair character literally without activating the paredit key it is bound to. Source: emacswiki.