Gabriel B. wrote:
I've used gvim with gnome for some time.
Now when i try to open a file with right click in the file nautilus'
icon, open with gvim. I get:
Erreur détectée en traitant BufReadCmd Auto commandes pour "file://*":
error detected treating BufReadCmd Auto commandes for "file://*":
is it something i messed up in vim or in nautilus?
a grep for auto|file://|BufRead in my .vimrc show just that of interest:
" Trim whitespace from python files
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
Thanks,
Gabriel
It may have been defined by another plugin such as netrw. Try
:verbose au BufReadCmd
For the file:// protocol I see:
file://* exe "silent doau BufReadPre
".netrw#RFC2396(expand("<amatch>"))|exe 'e
'.substitute(netrw#RFC2396(expand("<amatch>")),'file://\(.*\)','\1',"")|exe
"silent doau BufReadPost ".netrw#RFC2396(expand("<amatch>"))
Last set from /usr/local/share/vim/vim70/plugin/netrwPlugin.vim
file://localhost/*
exe "silent doau BufReadPre
".netrw#RFC2396(expand("<amatch>"))|exe 'e
'.substitute(netrw#RFC2396(expand("<amatch>")),'file://localhost/\(.*\)','\1',"")|exe
"silent doau BufReadPost ".netrw#RFC2396(expand("<amatch>"))
Last set from /usr/local/share/vim/vim70/plugin/netrwPlugin.vim
Function netrw#RFC2396() is provided by $VIMRUNTIME/autoload/netrw.vim
Best regards,
Tony