From 2891731697c60cfaf3c431293b30359f5ace46e2 Mon Sep 17 00:00:00 2001 From: bounceme Date: Tue, 16 Aug 2016 19:32:35 -0700 Subject: [PATCH] settings these don't seem to be very relevant when using indentexprs, and may override the indentation script, opinions on this are welcomed, and honestly I don't know exactly what effect these have. the clojure indent file and a few others included with vim has these options set to off --- indent/javascript.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indent/javascript.vim b/indent/javascript.vim index 882fe48a..21fdf3aa 100644 --- a/indent/javascript.vim +++ b/indent/javascript.vim @@ -12,11 +12,11 @@ let b:did_indent = 1 " Now, set up our indentation expression and keys that trigger it. setlocal indentexpr=GetJavascriptIndent() -setlocal nolisp +setlocal nolisp noautoindent nosmartindent setlocal indentkeys=0{,0},0),0],:,!^F,o,O,e setlocal cinoptions+=j1,J1 -let b:undo_indent = 'setlocal indentexpr< indentkeys< cinoptions<' +let b:undo_indent = 'setlocal indentexpr< smartindent< autoindent< indentkeys< cinoptions<' " Only define the function once. if exists('*GetJavascriptIndent')