Vim documents non-existent indent plugin options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: vim-runtime
Trying to configure indentation of case statements in shell scripts when using Vim's indent plugin, I consulted the documentation. While in command mode in Vim, enter the following:
:help ft-sh-indent
Attempting to set values for any of the documented dictionary keys results in an undefined variable error message. It seems that the features of the shipped indent plugin for shell scripts does not match the documented behavior.
Description: Ubuntu 9.04
Release: 9.04
vim-runtime:
Installed: 2:7.2.079-1ubuntu5
Candidate: 2:7.2.079-1ubuntu5
Version table:
*** 2:7.2.079-1ubuntu5 0
500 http://
100 /var/lib/
Changed in vim (Ubuntu): | |
status: | New → Incomplete |
Changed in vim (Ubuntu): | |
status: | Incomplete → Fix Released |
How did you attempt to set the variables? And from what script? I think you should be doing the following in ~/.vim/ indent/ sh.vim
let b:sh_indent_options = { 'default': value, 'continuation- line': value }
where "value" is replaced by the values you want (number of spaces).