Merge: misc: do not enforce shiftwidth to 8, let the .vimrc user config
authorJean Privat <jean@pryen.org>
Tue, 13 May 2014 00:51:57 +0000 (20:51 -0400)
committerJean Privat <jean@pryen.org>
Tue, 13 May 2014 00:51:57 +0000 (20:51 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Pull-Request: #393
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

1  2 
misc/vim/indent/nit.vim

diff --combined misc/vim/indent/nit.vim
@@@ -31,7 -31,6 +31,6 @@@ setlocal nocinden
  setlocal autoindent
  setlocal comments=:#
  setlocal indentkeys+==end,=else,=do,=var,0!,=then,=loop,=special,=class,=interface,=universal
- setlocal sw=8
  
  " Only define the function once.
  if exists("*GetNITIndent")
@@@ -45,7 -44,7 +44,7 @@@ let s:outdent = '^\s*\(else\|then\|end\
  " At 0
  let s:no_indent = '^\s*\(class\|import\|special\)\>'
  
 -let s:syng_strcom = '\<nit\%(String\|StringDelimiter\|Escape\|Comment\|Documentation\)\>'
 +let s:syng_strcom = '\<NIT\(String\|StringDelimiter\|Escape\|Comment\|Documentation\)\>'
  
  " Check if the character at lnum:col is inside a string, comment, or is ascii.
  function s:IsInStringOrComment(lnum, col)