Hi Rob,
2016-5-12(Thu) 10:32:12 UTC+9 Rob Buonpastore:
> The result of pressing == in visual mode to reindent the following lines by:
>
>
> # setting ```filetype plugin indent on``` in vimrc
> if true {
> if true {
> }
> }
>
> # setting ```filetype plugin indent on``` manually in Vim
> if true {
> if true {
> }
> }
>
>
> I expect the latter behavior regardless of where filetype plugin indent on is
> set. Thanks!
>
>
> Info
>
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 8 2016 22:57:26)
>
> MacOS X (unix) version
>
> Included patches: 1-1816
filetype plugin indent on
Above command are only enable file type detection, loading the plugin files and
loading the indent file.
Then, you need to detect the file type in the following method and the like.
(a) Read file (e.g.`:e foo.tcl`)
(b) To detect the file type again (i.e. `:filetype detect`)
(c) To set the file type directly (e.g. `:set ft=tcl`)
Case 1:
> # setting ```filetype plugin indent on``` in .vimrc
and If you specify a file to Vim startup.
Vim read specified file after reading .vimrc.
That is, enable file type detection before reading specified file. (same as
above (a))
You can get the following result:
:set indentexpr?
indentexpr=GetTclIndent()
Case 2:
> # setting ```filetype plugin indent on``` manually in Vim
None of the above((a),(b) and (c)) has not been carried out.
You can get the following result:
:set indentexpr?
indentexpr=
Main issue is from here.
Only the case 1 is correctly file type detection has been carried out.
And The indentation is not correct, please contact the runtime/indent/tcl.vim
maintainer.
(e.g. To: Nikolai Weibull, Cc: vim_dev ML)
Thank you reading my crazy English.
--
Best regards,
Hirohito Higashi (a.k.a. h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.