-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
odd indention with vim-vue and pug files #80
Comments
I'm not sure how to fix this in a way that doesn't "break" indentation for other filetypes, but you can stick this in your vimrc: autocmd BufEnter *.vue setlocal indentkeys-=*<Return> indentkeys-={ |
This also breaks indentation for vim folding since it uses {{{ }}}, on style and template blocks. |
I can think of a few ways to solve this. We could maybe detect what key triggered the indentation (only in insert mode) and then compare it to the We could add a smart way of setting options using context_filetype.vim. We can use it to detect the current filetype on the |
FYI i was finally able to solve this in m`/.vimrc with autocmd FileType * setlocal indentkeys=o,O This still allows indentation on new lines, which im fine with |
this happens only when i'm writing pug w/in my vue component, if i place this code in a .pug file it doesn't try to indent via
{
The text was updated successfully, but these errors were encountered: