Vim version used:
https://bitbucket.org/ZyX_I/vim/changeset/725efae18de57cd31db4de2ab8583535cf39a088

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 18 2015 13:55:59)
Заплатки: 1-788
Скомпилирован  zyx@zyx-desktop
Огромная версия с графическим интерфейсом GTK2.  Включённые (+) и
отключённые (-) особенности:
+acl             +file_in_path    -mouse_sysmouse  -tag_any_white
+arabic          +find_in_path    +mouse_urxvt     +tcl
+autocmd         +float           +mouse_xterm     +terminfo
+balloon_eval    +folding         +multi_byte      +termresponse
+browse          -footer          +multi_lang      +termtruecolor
++builtin_terms  +fork()          -mzscheme        +textobjects
+byte_offset     +gettext         +netbeans_intg   +title
+cindent         -hangul_input    +path_extra      +toolbar
+clientserver    +iconv           +perl            +user_commands
+clipboard       +insert_expand   +persistent_undo +vertsplit
+cmdline_compl   +jumplist        +postscript      +virtualedit
+cmdline_hist    +keymap          +printer         +visual
+cmdline_info    +langmap         +profile         +visualextra
+comments        +libcall         +python/dyn      +viminfo
+conceal         +linebreak       +python3/dyn     +vreplace
+cryptv          +lispindent      +quickfix        +wildignore
+cscope          +listcmds        +reltime         +wildmenu
+cursorbind      +localmap        +rightleft       +windows
+cursorshape     +lua/dyn         +ruby            +writebackup
+dialog_con_gui  +menu            +scrollbind      +X11
+diff            +mksession       +signs           -xfontset
+digraphs        +modify_fname    +smartindent     +xim
+dnd             +mouse           -sniff           +xsmp_interact
-ebcdic          +mouseshape      +startuptime     +xterm_clipboard
+emacs_tags      +mouse_dec       +statusline      -xterm_save
+eval            +mouse_gpm       -sun_workshop    +xpm
+ex_extra        -mouse_jsbterm   +syntax
+extra_search    +mouse_netterm   +tag_binary
+farsi           +mouse_sgr       +tag_old_static
            общесистемный файл vimrc: "$VIM/vimrc"
         пользовательский файл vimrc: "$HOME/.vimrc"
  второй пользовательский файл vimrc: "~/.vim/vimrc"
          пользовательский файл exrc: "$HOME/.exrc"
           общесистемный файл gvimrc: "$VIM/gvimrc"
        пользовательский файл gvimrc: "$HOME/.gvimrc"
 второй пользовательский файл gvimrc: "~/.vim/gvimrc
"
             общесистемный файл меню: "
$VIMRUNTIME/menu.vim"
          значение $VIM по умолчанию: "/usr/share/vim"
Параметры компиляции: gcc -c -I. -Iproto -DHAVE_CONFIG_H
-DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng16 -I/usr/include/pango-1.0
-I/usr/include/harfbuzz -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/freetype2    -O3 -march=amdfam10 -mtune=amdfam10 -pipe
-msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mno-movbe -mno-fma
--param l1-cache-size=16 --param l1-cache-line-size=64 --param
l2-cache-size=2048 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
-I/usr/include  -D_LARGEFILE64_SOURCE=1
Сборка: gcc   -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic
-Wl,--no-undefined -Wl,-E   -L/usr/local/lib -Wl,--as-needed -o vim
-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo
-lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
-lglib-2.0 -lfontconfig -lfreetype  -lSM -lICE -lXpm -lXt -lX11
-lXdmcp -lSM -lICE  -lm -lncurses -lelf -lnsl    -lacl -lattr -lgpm
-ldl   -Wl,-E -Wl,-O1 -Wl,--as-needed
-L/usr/lib64/perl5/5.20.2/x86_64-linux/CORE -lperl -lnsl -ldl -lm
-lcrypt -lutil -lc   -ltcl8.5 -ldl -lieee -lm -Wl,-R -Wl,/usr/lib64
-L/usr/lib64 -lruby19 -lpthread -lrt -ldl -lcrypt -lm  -L/usr/lib64

2015-08-06 0:29 GMT+03:00 Nikolay Pavlov <[email protected]>:
> 2015-08-06 0:21 GMT+03:00 Frank Dinoff <[email protected]>:
>>>     autocmd BufNew * :call DefineAu()
>>>     function DefineAu()
>>>         :au CursorHold <buffer=abuf>  echo 'hold'
>>>     endfunction
>>
>> after defining the function and adding the autocmd, using :new to create a 
>> new buffer still outputs
>>
>>     E680: <buffer=0>: invalid buffer number
>
> This works for me:
>
>     vim -u NONE -i NONE --cmd 'au BufNew * :call DefAu()' --cmd $'fu
> DefAu()\nau CursorHold <buffer=abuf> echo "hold"\nendfu' -c enew
>
> : periodically prints `hold` as expected. (Needs zsh or bash because
> $'' is not present in POSIX shells.)
>
>>
>> --
>> --
>> You received this message from the "vim_use" 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_use" 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.

-- 
-- 
You received this message from the "vim_use" 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_use" 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.

Reply via email to