1

I'm a vim user trying to learn common lisp. I run gvim on windows. I am trying to follow the slimv tutorial given here: http://kovisoft.bitbucket.org/tutorial.html

My question:suppose you type the following and press enter after :morse (the vertical bar denotes the cursor position)

(defpackage :morse|)

I get the following result (again the vertical bar '|' denotes the cursor position):

(defpackage :morse
  |
    )

Whereas I want the following result:

(defpackage :morse
  |)

so that I can continue to type to get the following:

(defpackage :morse
  (:use :common-lisp))

What should I do to get the result I want?

Many thanks in advance!

ARV
  • 6,287
  • 11
  • 31
  • 41

1 Answers1

1

Got it - the answer apparently lies in :help g:paredit_electric_return. I.e., insert the following in your _vimrc file:

let g:paredit_electric_return=1

Also see this feature in action:

Community
  • 1
  • 1
ARV
  • 6,287
  • 11
  • 31
  • 41
  • 3
    Slimv author here. I'm glad you found out that this was the `g:paredit_electric_return` option. I'm going to mention this also in the tutorial, thanks for drawing my attention to that. *Note*: you need to set the option to 0 if you want to disable electric returns. – Tamas Kovacs Jun 21 '13 at 22:07