python search regex

2016-11-23 Thread rameo
A time ago, I asked if it possible to add python regex to vim. No one answered that question. VIM is a great editor and the use of Vimscript makes it even better. Then I started to learn Python and noted that Bram has integrated Python in Vim. I transformed many scripts from Vimscript to

Re: Problem with macro and defaults.vim

2016-11-23 Thread Christian Brabandt
Am 2016-11-22 21:31, schrieb Cesar Romani: I'm using Vim 8.0.94 on Windows. Suppose I have the following line 111 bbb aaa ccc and I delete the first word with 'dw', the second with '.', go the end of line with $, go the previous space with 'F' followed by space, and do 'p'. Summing up, I'm

Write a buffer other than the current one?

2016-11-23 Thread Efraim Yawitz
I haven't been able to find a way to write a buffer other than the current one, i.e. something like a command :writebuf or a similar function. It seems like this would be something useful to do, say after listing buffers and seeing which ones were changed. I know one can do :wall, but that does

Fold-related bug and pointer to fix

2016-11-23 Thread Efraim Yawitz
I had the following problem and I think it is a bug in some fold-related code: I was trying to use the NarrowRegion plugin to do diffs between two functions in the same file by creating narrowed buffers for each function and calling :diffthis on them. When I tried to do this using folds, i.e.