* Gary Johnson <[email protected]> [2009-11-09 09:42 -0800]: > > On 2009-11-09, James Michael Fultz wrote: > > How do I control the indentation in shell scripts when using the > > filetype indent plugin? > > > > I have consulted Vim's documentation and found the section on > > ft-sh-indent to be confusing. The documenation found on the Web is the > > same as what I have locally. > > > > <http://vimdoc.sourceforge.net/htmldoc/indent.html#ft-sh-indent>
Have a look at the documentation. There seems to be conflicting or at least confusing information whether it is b:sh_indent_defaults or b:sh_indent_options. > What aspect of the indentation are you trying to control? What > variables are you trying to set, how exactly are you trying to set > them, and what exactly happens when you try? I want to change the indent of case statements. Trying to set any of the documented dictionary keys results in the same error message. For example: :let b:sh_indent_options['case-labels'] = 0 Results in: E121: Undefined variable: b:sh_indent_options Anyway, this may be a wild goose chase since sh_indent_options nor sh_indent_defaults is referenced in none of the installed plugins. As a comparison, look at the documentaton for Python indent. <http://vimdoc.sourceforge.net/htmldoc/indent.html#ft-python-indent> The documented variables can be found in the python.vim indent plugin. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
