![]() I then started up the lisp server (done through a GUI with MacVim), which loaded up my default lisp executable and core file.Īnd* since my core file is already loaded with the language extensions that I commonly use (awhen being one of them), awhen formatted correctly right out of the box. As a test, I downloaded MacVim (will need this working with terminal vim, but that's a different problem) and slimv, rsynched the slimv download into ~/.vim, launched MacVim, and loaded a. Any ideas how I can do this?Įdit: Thanks Gilligan and Tamas for the Slimv recommendation. I would like 'awhen to auto-format like 'when. This keystroke moves the vim cursor back to the first column, and then you can keep typing from there.I would like to know the best way to customize auto-formatting/auto-indenting in vim for Common Lisp.Īuto-formatting (I usually do this by typing '=' in command mode per line) works very well for the base lisp language in vim (e.g., defmacro, defun, lambda, if, with-output-to-string), but any time that new language constructs are defined (e.g., using macros), I find that the formatting for the new construct is often not what I'd like it to be.įor example, here's how vim formats 'when (standard lisp construct) and 'awhen (commonly-used anaphoric version of 'when not part of lisp standard) (when 'this Just use this keystroke to move back to the first column: On a related note, if the vim autoindent feature has indented a line, but you really want to move the cursor back to the first column, you don’t have to press the backspace key several times to move back. ![]() (For more information on vimrc configuration files, see my example vim vimrc configuration file tutorial.) vim autoindent: How to un-indent a line in vim ![]() You can either type this vim autoindent command while you’re in vim, or if you want this to be the default behavior, you can add this line to your. This tells vim to automatically indent the next line. To configure vim autoindent, just use this command in vim’s last-line mode: Vim autoindent FAQ: How do I configure the vim editor to automatically indent newlines? That is, if my current line is indented three spaces, and I hit, I want the next line to automatically be indented three spaces as well. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |