Re: BufEnter and echomsg

2013-09-12 Fir de Conversatie Charles Campbell
Bram Moolenaar wrote: Charles Campbell wrote: I'm having a problem exemplified by the following code snippet: (lets call this prblm.vim) au BufEnter * sil! call Prblm(expand("")) fun! Prblm(fname) let g:junk= 1 echomsg "TESTING<".a:fname.">" endfun vsplit Use vim -u NONE prblm.vim

Re: BufEnter and echomsg

2013-09-12 Fir de Conversatie Bram Moolenaar
Charles Campbell wrote: > I'm having a problem exemplified by the following code snippet: (lets > call this prblm.vim) > > au BufEnter * sil! call Prblm(expand("")) > fun! Prblm(fname) >let g:junk= 1 >echomsg "TESTING<".a:fname.">" > endfun > vsplit > > > Use vim -u NONE prblm.vim >

Re: BufEnter and echomsg

2013-09-11 Fir de Conversatie Tony Mechelynck
On 11/09/13 22:33, Charles Campbell wrote: Hello! I'm having a problem exemplified by the following code snippet: (lets call this prblm.vim) au BufEnter * sil! call Prblm(expand("")) fun! Prblm(fname) let g:junk= 1 echomsg "TESTING<".a:fname.">" endfun vsplit Use vim -u NONE prblm.vim

BufEnter and echomsg

2013-09-11 Fir de Conversatie Charles Campbell
Hello! I'm having a problem exemplified by the following code snippet: (lets call this prblm.vim) au BufEnter * sil! call Prblm(expand("")) fun! Prblm(fname) let g:junk= 1 echomsg "TESTING<".a:fname.">" endfun vsplit Use vim -u NONE prblm.vim :so % :echo g:junk At this point, we get E