On Feb 26, 1:41 am, winterTTr <[email protected]> wrote:
>
> the Code like below( just an example, not the real code ):
> I am trying to use the "set eventignore+=BufEnter" and "set
> eventignore-=BufEnter" to prevent the
> process from running recursively.
>
> --------------------------begin-----------------------------------
> function! TestFunc()
> set eventignore+=BufEnter
>
> let bufname = bufname("%")
> " move to specific window
> 2wincmd w
> " update buffer
> call append( 0 , bufname )
> " move back
> 1wincmd w
>
> set eventignore-=BufEnter
> endfunction
>
> autocmd BufEnter * call TestFunc()
> --------------------------end--------------------------------------
>
> Everything is OK until i do the bufdo command. such as "bufdo s/^/1/"
> "E474: Invalid argument: eventignore+=BufEnter" message is shown.
>
>
I can reproduce on the "Cream" build for Windows, even after
commenting out the entire contents of the TestFunc function, leaving
in the :set commands. The "bufdo" command I used was 'bufdo echo
expand("%")'.
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Feb 3 2010 15:30:41)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-356
Compiled by [email protected]
Huge version with GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments
+cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs -dnd -
ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path
+float +folding -footer +gettext/dyn -hangul_input +iconv/dyn
+insert_expand +jumplist +keymap +langmap +libcall +linebreak
+lispindent +listcmds +localmap
+menu +mksession +modify_fname +mouse +mouseshape +multi_byte_ime/dyn
+multi_lang +mzscheme/dyn +netbeans_intg +ole -osfiletype +path_extra
+perl/dyn
-postscript +printer +profile +python/dyn +quickfix +reltime
+rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff
+startuptime +statusline
-sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white +tcl/
dyn -tgetent -termresponse +textobjects +title +toolbar +user_commands
+vertsplit
+virtualedit +visual +visualextra +viminfo +vreplace +wildignore
+wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32
--
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