Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 388
Kurtosis Avatar asked Dec 16 '22 15:12

Kurtosis


2 Answers

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/

like image 200
Tamas Kovacs Avatar answered May 21 '23 06:05

Tamas Kovacs


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.

like image 39
Terje Norderhaug Avatar answered May 21 '23 06:05

Terje Norderhaug