summaryrefslogtreecommitdiff
path: root/runtime/indent
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-11 17:23:02 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-11 17:23:02 +0200
commit3acfc30409eb8e3721d888f2e7111111057fe937 (patch)
tree22ca3ab3536417810973c22fd67caf32bf453945 /runtime/indent
parent9028b10dfe3a00e505bf1b720f515dab91913b5e (diff)
downloadvim-git-3acfc30409eb8e3721d888f2e7111111057fe937.tar.gz
Improve Javascript indenting. Add "J" flag to 'cino'. (Hari Kumar G)
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/javascript.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/indent/javascript.vim b/runtime/indent/javascript.vim
index cf4a4f3ce..a83d34b11 100644
--- a/runtime/indent/javascript.vim
+++ b/runtime/indent/javascript.vim
@@ -11,5 +11,6 @@ let b:did_indent = 1
" C indenting is not too bad.
setlocal cindent
+setlocal cinoptions+=j1,J1
let b:undo_indent = "setl cin<"