Skip to content

Loading…

request for shell (ft=sh) support #3

Closed
y opened this Issue · 3 comments

5 participants

@y
y commented

this would be very useful for shell scripting

@tangledhelix

I've added sh support in my fork:

https://github.com/tangledhelix/vim-endwise

Works with:

if .. fi
while .. done
for .. done
case .. esac

(The indenting on esac isn't right, but I think that's a problem in the sh syntax itself; it does the same thing without endwise.)

@blueyed

This appears to be merged, in d8c887b .

@telemachus

@tangledhelix Re case...esac indentation. I just came to file a bug about this (or see if there was one already), when I found your comment. I think unfortunately that you're wrong. The problem isn't in Vim's indentation for shell files. Without vim-endwise, esac works fine for me. But if I use endwise, the indentation is off. I've filed a bug and would love your input.

@tpope tpope closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.