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!

Était-ce utile?

La 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:

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top