-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
filetype plugin not loaded when file opened from within vim rather than from command line #326
Comments
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by |
I've hit this issue on an Ubuntu 14.04.2 box and I was able to correct it by compiling vim from source. If I had to guess, I think patch 860 was the fix. http://ftp.vim.org/pub/vim/patches/7.4/README |
I have the same issue. ~/.vim/after/ftplugin/py.vimset expandtab
set tabstop=4
set shiftwidth=4 Steps to reproduceWith py.vim (see above) in place...
Build info$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)
Included patches: 1-52
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty |
Actually I ran 1: /usr/share/vim/vimrc
2: /usr/share/vim/vim74/debian.vim
3: /usr/share/vim/vim74/syntax/syntax.vim
4: /usr/share/vim/vim74/syntax/synload.vim
5: /usr/share/vim/vim74/syntax/syncolor.vim
6: /usr/share/vim/vim74/filetype.vim
7: ~/.vimrc
8: /usr/share/vim/vim74/ftplugin.vim
9: /usr/share/vim/vim74/indent.vim
10: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
11: /usr/share/vim/vim74/plugin/gzip.vim
12: /usr/share/vim/vim74/plugin/matchparen.vim
13: /usr/share/vim/vim74/plugin/netrwPlugin.vim
14: /usr/share/vim/vim74/plugin/rrhelper.vim
15: /usr/share/vim/vim74/plugin/spellfile.vim
16: /usr/share/vim/vim74/plugin/tarPlugin.vim
17: /usr/share/vim/vim74/plugin/tohtml.vim
18: /usr/share/vim/vim74/plugin/vimballPlugin.vim
19: /usr/share/vim/vim74/plugin/zipPlugin.vim
20: /usr/share/vim/vim74/syntax/python.vim
21: /usr/share/vim/vim74/ftplugin/python.vim
22: /usr/share/vim/vim74/indent/python.vim I tried editing /usr/share/vim/vim74/ftplugin/python.vim and /usr/share/vim/vim74/indent/python.vim to remove the "did load already" checks, but that didn't make a difference on the unexpected behavior. My workaround is to manually execute |
Op 21 sep. 2016 23:40 schreef "Marty Chang" vim-dev-github@256bit.org:
Shouldn't it be called python.vim then? Christ van Willegen |
@martyychang: You don't have the necessary patch that (I suspect) fixed this problem. See my response here: #326 (comment) There's this question How can I update vim in ubuntu 10.04LTS over at askubuntu.com that says to use |
@martyychang I suspect a user question here. Please ask on the appropriate forum. thanks. I am closing this issue as it seems unreproducible. |
Original issue reported on code.google.com by
fmerci...@gmail.com
on 9 Feb 2015 at 3:23The text was updated successfully, but these errors were encountered: