Re: autocmd with

2015-08-05 Thread Frank Dinoff
> VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 18 2015 13:55:59) > Заплатки: 1-788 I was running up to patch 622. It seems the behavior of was changed/fixed in patch 7.4.637 https://groups.google.com/d/msg/vim_dev/VUMahGC2n1s/iYwbxEIN5PIJ I also tried with vim 7.3 (default version that comes

Re: autocmd with

2015-08-05 Thread Nikolay Pavlov
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. Включённые (+) и отключённые (-) о

Re: autocmd with

2015-08-05 Thread Nikolay Pavlov
2015-08-06 0:21 GMT+03:00 Frank Dinoff : >> autocmd BufNew * :call DefineAu() >> function DefineAu() >> :au CursorHold echo 'hold' >> endfunction > > after defining the function and adding the autocmd, using :new to create a > new buffer still outputs > > E680: : invalid

Re: autocmd with

2015-08-05 Thread Frank Dinoff
> autocmd BufNew * :call DefineAu() > function DefineAu() > :au CursorHold echo 'hold' > endfunction after defining the function and adding the autocmd, using :new to create a new buffer still outputs E680: : invalid buffer number -- -- You received this message fro

Re: autocmd with

2015-08-05 Thread Nikolay Pavlov
2015-08-05 21:33 GMT+03:00 Nikolay Pavlov : > 2015-08-05 5:40 GMT+03:00 Frank Dinoff : >> One of the options according to the help for buffer local autocmds is >> . I can't seem to figure out how to use it. The help (:help >> ) provides an example >> >> :au CursorHold echo 'hold' Though ex

Re: autocmd with

2015-08-05 Thread Nikolay Pavlov
2015-08-05 5:40 GMT+03:00 Frank Dinoff : > One of the options according to the help for buffer local autocmds is > . I can't seem to figure out how to use it. The help (:help > ) provides an example > > :au CursorHold echo 'hold' > > which seems to always generate > > E680: : invalid bu

Re: dot in iskeyword in C and sh files

2015-08-05 Thread Christian Brabandt
Hi Olaf! On Mi, 05 Aug 2015, Olaf Hering wrote: > > Since some time cycling through variables in a shell file with the > asterisk '*' key is broken for me. In the simple example like that: > > var="val" > echo "$var.whatever" > > I was able to move cursor to "var=", hit "*" and

dot in iskeyword in C and sh files

2015-08-05 Thread Olaf Hering
Since some time cycling through variables in a shell file with the asterisk '*' key is broken for me. In the simple example like that: var="val" echo "$var.whatever" I was able to move cursor to "var=", hit "*" and saw all "var" strings highlighted. Recently that broken, only the

autocmd with

2015-08-05 Thread Frank Dinoff
One of the options according to the help for buffer local autocmds is . I can't seem to figure out how to use it. The help (:help ) provides an example :au CursorHold echo 'hold' which seems to always generate E680: : invalid buffer number How is supposed to be used? (This origi

Buffer local autocmd with

2015-08-05 Thread Frank Dinoff
How do you use for buffer local autocmds. According to the `:help ` an example usage would be :au CursorHold echo 'hold' However this always seems to error out with E680: : invalid buffer number (This originally came up as a StackOverflow question http://stackoverflow.com/questions/3