Currently if indents like:
(if #t
a
b)
That seems to be bit unusual, so this commit drops if from the default
lw, leading to expected indentation of:
(if #t
a
b)
Old behavior can be restored by putting if back into lw.
---
This can be changed in .vimrc, so arguable not a necessary change. But
as a newcomer to lisp it took me a while to figure out why vim formats
it differently compared to literally any textbook or tutorial I've
managed to found.
src/option.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/option.h b/src/option.h
index ebbf94b06..2eae89db4 100644
--- a/src/option.h
+++ b/src/option.h
@@ -376,7 +376,7 @@ typedef enum {
#define CULOPT_SCRLINE 0x02 // Highlight screen line
#define CULOPT_NBR 0x04 // Highlight Number column
-#define LISPWORD_VALUE
"defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object"
+#define LISPWORD_VALUE
"defun,define,defmacro,set!,lambda,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object"
/*
* The following are actual variables for the options
--
2.36.2
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221008210656.11591-1-wolf%40wolfsden.cz.