Comment #12 on issue 326 by [email protected]: filetype plugin not loaded when file opened from within vim rather than from command line
https://code.google.com/p/vim/issues/detail?id=326

I am having the same problem.

I assume, you can reproduce it, starting with
vim -u NONE -i NONE -N --cmd ':filetype plugin on' foo.py

Yes.

Output of :set verbose=10 and :e bar.py:

chdir(/tmp)
fchdir() to previous dir
"bar.py" 0 lines, 0 characters
Executing BufRead Auto commands for "*.py"
autocommand setf python
Executing FileType Auto commands for "*"
autocommand call s:LoadFTPlugin()
Searching for "ftplugin/python.vim ftplugin/python_*.vim ftplugin/python/*.vim" in "/home/username/.vim,/usr/sha
re/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/home/username/.vim/after"
Searching for "/home/username/.vim/ftplugin/python.vim"
Searching for "/home/username/.vim/ftplugin/python_*.vim"
Searching for "/home/username/.vim/ftplugin/python/*.vim"
Searching for "/usr/share/vim/vimfiles/ftplugin/python.vim"
Searching for "/usr/share/vim/vimfiles/ftplugin/python_*.vim"
Searching for "/usr/share/vim/vimfiles/ftplugin/python/*.vim"
Searching for "/usr/share/vim/vim74/ftplugin/python.vim"
chdir(/usr/share/vim/vim74/ftplugin)
fchdir() to previous dir
line 17: sourcing "/usr/share/vim/vim74/ftplugin/python.vim"
finished sourcing /usr/share/vim/vim74/ftplugin/python.vim
continuing in function <SNR>2_LoadFTPlugin
Searching for "/usr/share/vim/vim74/ftplugin/python_*.vim"
Searching for "/usr/share/vim/vim74/ftplugin/python/*.vim"
Searching for "/usr/share/vim/vimfiles/after/ftplugin/python.vim"
Searching for "/usr/share/vim/vimfiles/after/ftplugin/python_*.vim"
Searching for "/usr/share/vim/vimfiles/after/ftplugin/python/*.vim"
Searching for "/home/username/.vim/after/ftplugin/python.vim"
Searching for "/home/username/.vim/after/ftplugin/python_*.vim"
Searching for "/home/username/.vim/after/ftplugin/python/*.vim"
Executing BufRead Auto commands for "*"
autocommand if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat | runtime! scripts.vim | endif
Executing BufRead Auto commands for "*"
autocommand if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat && (getline(1) =~ '^#' || getli ne(2) =~ '^#' || getline(3) =~ '^#'^I|| getline(4) =~ '^#' || getline(5) =~ '^#') | setf conf | endif

Press ENTER or type command to continue



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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.

Raspunde prin e-mail lui