Question

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!

Was it helpful?

Solution

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:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top