Re: Aurum: plugin for Mercurial <--> Vim integration

2011-12-03 Thread ZyX ZyX
> Also, on the Mercurial mailing list its developers will tell you now and > again that the only supported interface for third-party code is the CLI. > IIUC, you may call into the Python code, but at your own risks and > perils, and there's no warranty that your code will work the same way in > the

Re: Aurum: plugin for Mercurial <--> Vim integration

2011-12-03 Thread ZyX ZyX
> They have already told me that on the IRC. I don’t think it is a > problem: my plugin works on all mercurial versions starting from > mercurial-1.2 (first version I was able to install pip under > virtualenv). And unlike with the case when I use python interface, some tests are failing for mercu

Re: Aurum: plugin for Mercurial <--> Vim integration

2011-12-03 Thread ZyX ZyX
> This link is broken for me: > The requested URL /ZyX_I/aurum was not found on this server. Thanks. That is the problem of manual typing: it should be .org, not .com: https://bitbucket.org/ZyX_I/aurum -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply bel

[ANN] Aurum-1.3: plugin for Vim <--> VCS integration, now with git support

2012-01-03 Thread ZyX ZyX
This plugin provides a vim <--> VCS (currently mercurial and git) integration for your projects. Features: - Partially committing changes (|:AuRecord|). - Viewing file state at particular revision (|aurum://file|, |:AuFile|). - Viewing uncommited changes in a |vimdiff|, as well as changes bet

Re: Aurum-1.3: plugin for Vim <--> VCS integration, now with git support

2012-01-03 Thread ZyX ZyX
> Shouldn't you also say a sentence about why not continue vcscommand [1]? > Often there are strong reasons for starting from scratch. It would also > be nice to say a word or two about the why ? VCSCommand is not that unified: it is :reading command outputs without parsing it. Aurum drivers are o

Aurum-1.4: plugin for Vim <--> VCS integration, now with incremental log updates

2012-01-14 Thread ZyX ZyX
This plugin provides a vim <--> VCS (currently mercurial and git) integration for your projects. Features: - Partially committing changes (:AuRecord). - Viewing file state at particular revision (:AuFile). - Viewing uncommited changes in a vimdiff split, as well as changes between specific

Re: use of vim signs

2013-05-28 Thread ZyX ZyX
On May 28, 2013 10:43 PM, "Marc Weber" wrote: > > Excerpts from glts's message of Tue May 28 20:22:35 +0200 2013: > > - ":set nonu nornu" means: I don't want any line numbers; > > - ":set nu nornu" means: I want to see only absolute numbers; > > - ":set nonu rnu" means: I want to see only relative

Re: Thread safety not mentioned for python bindings

2013-05-29 Thread ZyX ZyX
On May 19, 2013 5:01 PM, "Zhao Cai" wrote: > > I tried to make some vim function calls from python thread. Some of the functions like `taglist()` are working but I am not sure if it is safe. Can anyone who knows this part of code give an "official" answer? Thanks! This code is not thread-safe. Vi

Re: which terminal

2013-05-30 Thread ZyX ZyX
On May 31, 2013 7:11 AM, "sinbad" wrote: > > what is the best terminal to use.i currently use putty i find that > the scrolling is dead slow when i open a diff window, i learnt > that the xterm terminal doesn't have the native split scrolling, > is there any terminal that is good at this. i google

Re: rounding numbers

2011-01-14 Thread ZyX
ou want to output with a dot, either add another substitute after printf, or use other scripting language that has better locale support. Original message: > On Jan 13, 9:13 pm, ZyX wrote: > > Reply to message «Re: rounding numbers», > > sent 21:17:29 13 January 2011, Thursday >

Re: deleting current file

2011-01-15 Thread ZyX
Reply to message «deleting current file», sent 17:39:44 15 January 2011, Saturday by eNG1Ne: I don't know any keys that will delete the current file, but there are two additional possibilities: 1. You somehow made vim crash while saving the file. On my system vim deletes the old file and moves

Re: deleting current file

2011-01-15 Thread ZyX
s other options). Original message: > On 01/15/2011 11:18 AM, ZyX wrote: > > On my system vim deletes the old file and moves new to its > > place (by the way, does someone know how to make vim modify > > existing file instead?). > > I believe the option 

Re: Matching Multiple Columns in Vim

2011-01-15 Thread ZyX
Reply to message «Re: Matching Multiple Columns in Vim», sent 06:12:36 16 January 2011, Sunday by Tim Chase: > I believe the difference is notable when you have tabs in your > file...a tab character is a single byte (a real character), but > can be represented on the screen by multiple virtual ch

Re: How to script a function, which reacts on visual blocks

2011-01-17 Thread ZyX
Reply to message «How to script a function, which reacts on visual blocks», sent 19:50:39 17 January 2011, Monday by meino.cra...@gmx.de: > any hint how to script a function, which also evaluate the > limits of a visual block. > > How can I do this? You may find example under `:h g@' useful t

Re: iab : why "i" inserts space ?

2011-01-19 Thread ZyX
Reply to message «Re: iab : why "i" inserts space ?», sent 14:41:49 19 January 2011, Wednesday by Jean-Francois: There is another option: cite from vim help just before |:abbreviate-local| tag: = map.txt = You can even do more compl

Re: Help with substitute command

2011-01-20 Thread ZyX
Reply to message «Re: Help with substitute command», sent 14:39:35 20 January 2011, Thursday by Christian Brabandt: > "Why do I need to script something using > a loop, if Windows can do it much more easily"? If you use zsh, these two lines are enough: autoload zmv alias rename='zmv -W'

Re: create variable on the fly

2011-01-22 Thread ZyX
Reply to message «Re: create variable on the fly», sent 22:58:36 23 January 2011, Sunday by Christian Brabandt: > Something like this: > if (a>0 && b>0 && a+b < 0) >return -1 > endif There are lots of cases when this does not work, for example: :echo +(printf('%u', -1)/2) 2147483647 :echo 214

Re: Conque ERROR: Python interface cannot be loaded

2011-01-23 Thread ZyX
Reply to message «Conque ERROR: Python interface cannot be loaded», sent 21:07:16 23 January 2011, Sunday by 88: Which of the words in the error message you don't understand? Nothing can be suggested without some information about operating system. Original message: > Does anyone know how to ru

Re: Conque ERROR: Python interface cannot be loaded

2011-01-24 Thread ZyX
message: > vim 7.2 > Macvim 7.3 > Mac 10.6 > > It says Macvim should be python ready, but outputs below python > interface error. Any idea? > > On Jan 24, 3:40 am, ZyX wrote: > > Reply to message «Conque ERROR: Python interface cannot be loaded», > > sent 21:07:

Re: Writing to filename in variable

2011-01-25 Thread ZyX
Reply to message «Writing to filename in variable», sent 03:31:46 26 January 2011, Wednesday by Colin Beighley: If your filename cannot contain newlines: w `=variable` . If it can: execute "w ".fnameescape(variable) . Original message: > Hello, > > I'd like to be able to write to a file

Re: How calling function from filter(dictionary)?

2011-01-26 Thread ZyX
Reply to message «Re: How calling function from filter(dictionary)?», sent 20:00:05 26 January 2011, Wednesday by sgp: > 1. Why does Compare() stop on error (case dC) in spite of the catch > statement? Looks like a vim bug, now posting it to vim-dev. > 2. How can I test the type of tgt without

Re: Problem with APostrophe

2011-01-27 Thread ZyX
Reply to message «Problem with APostrophe», sent 07:25:52 28 January 2011, Friday by naaj_ila: > I want to do all files so i went to the terminal and i typed like this > vim -c "argdo %s/`ERROR/&SUCCESS/gc | update " *.log > > It gives error Unmatched ` > If i removed Apostrophe "`"(left side o

Re: Problem with APostrophe

2011-01-27 Thread ZyX
Reply to message «Re: Problem with APostrophe», sent 08:29:42 28 January 2011, Friday by naaj_ila: It works for me. Print escaped version that you tried to use and an error that it gave you. Original message: > I tried using a backslash also ,,but it didnot worked signature.asc Description: T

Re: Delete, add 16, and insert

2011-01-30 Thread ZyX
Reply to message «Re: Delete, add 16, and insert», sent 23:26:19 30 January 2011, Sunday by Adam: Then you may have some plugin remapping ? Try doing execute "normal! 16\" and see whether it helps. There is a known (and fixed in vim-7.3.100) bug that count is not passed to plugins in normal

Re: Typing numbers

2011-01-30 Thread ZyX
Reply to message «Re: Typing numbers», sent 01:55:03 31 January 2011, Monday by adroid28: > Thanks for the advice but I have a macbook so I wouldn't want to do that > to it.. :) If I was using an external keyboard I would definitely do the > painting part. I think that would help! Instead of pain

Re: properly yanking word/selection

2011-01-31 Thread ZyX
Reply to message «properly yanking word/selection», sent 19:25:55 31 January 2011, Monday by sgp: > 1/ yaw (yank a word) yanks the space before the word (some times it > doesn't); I don't want the space. Possible suggestions here: 1. use «let @"=expand("")» (@" is a register variable, expand("")

Re: value of a variable within a expression

2011-02-01 Thread ZyX
Reply to message «value of a variable within a expression», sent 04:04:51 02 February 2011, Wednesday by Jonas Geiregat: > !stylus < '%:p' > s:nfile > > This doesn't work and really runs !stylus < whatever_is_the_current_file > > s:nfile. > > I've tried everything from echo s:nfile to let s:nfi

Re: Sourcing an arbitrary vimscript right after all vimrc files have been executed?Z

2011-02-02 Thread ZyX
Reply to message «Re: Sourcing an arbitrary vimscript right after all vimrc files have been executed?Z», sent 21:09:50 02 February 2011, Wednesday by Benjamin R. Haskell: > " careful of 'special' chars in filename (including spaces) > vim --cmd 'let g:extrasource='./path/to/extra.vim It won't wo

Re: Strange mapping behaviour

2011-02-03 Thread ZyX
Reply to message «Re: Strange mapping behaviour», sent 18:07:41 03 February 2011, Thursday by Marco: Does `:normal a»' or ``:call feedkeys('»') | startinsert'' work? Original message: > On 2011-02-03 Jürgen Krämer wrote: > > Hi, > > > > Marco wrote: > > > I discovered a strange behaviour while

Re: Setting filetype with autocommand

2011-02-03 Thread ZyX
Reply to message «Setting filetype with autocommand», sent 20:36:08 03 February 2011, Thursday by Marco: :h :setfiletype Set the 'filetype' option to {filetype}, but only if not done yet in a sequence of (nested) autocommands. *only if not done yet

Re: Performing mapped command on the command line

2011-02-03 Thread ZyX
Reply to message «Performing mapped command on the command line», sent 22:48:22 03 February 2011, Thursday by Marco: > How can I perform the command from the command line? A Try execute "normal i\IMAP_JumpBack" . And what for do you need to invoke it from command line? By the way, IMAP_Jumpf

Re: Performing mapped command on the command line

2011-02-03 Thread ZyX
monster here. You may also do the following: imap MappingToYourFunctionIMAP_JumpBack this should also work: function ExecuteJumpBack() return "\IMAP_JumpBack" endfunction imap {lhs} ExecuteJumpBack() The following can also work, but I did not test it: imap

Re: Performing mapped command on the command line

2011-02-04 Thread ZyX
at `' expands to `{N}_' where N is script number: it is described in :h which is also referenced in :h maparg(). You don't need this code for this particular task, but it is a generic way to call old mapping after redefining {rhs}. Original message: > On 2011-02-04 ZyX

Re: ctrl-o with a mapping

2011-02-04 Thread ZyX
Reply to message «ctrl-o with a mapping», sent 20:53:12 04 February 2011, Friday by AK: > nnoremap zz zz:call LineNums() > > It works well, but when I hit ctrl-O zz in insert, I get > the :call .. inserted in my text. This seems like a bug in ctrl-O? This is not a bug: executes one normal mod

Re: ctrl-o with a mapping

2011-02-04 Thread ZyX
our under some circumstances? Because after executing normal command it returns to insert mode. > I would say the expected behaviour would be to run the mapping.. This is what it does now. Original message: > On 02/04/2011 02:50 PM, ZyX wrote: > > Reply to message «ctrl-o with a mapping», > >

Re: ctrl-o with a mapping

2011-02-04 Thread ZyX
processed (and them I consider to be bugs), but you won't see them here. Original message: > On 02/04/2011 03:12 PM, ZyX wrote: > > Reply to message «Re: ctrl-o with a mapping», > > sent 23:03:53 04 February 2011, Friday > > > > by AK: > >> Well, perhaps

Re: ctrl-o with a mapping

2011-02-05 Thread ZyX
ill be replaced by {rhs} if you type {lhs} in normal mode. It never meant that it should run under normal mode, the fact that first command is run under normal mode is just a consequence of the fact that you press {lhs} in normal mode. Original message: > On 02/04/2011 03:40 PM, ZyX wrote: >

Re: ctrl-o with a mapping

2011-02-05 Thread ZyX
Reply to message «Re: ctrl-o with a mapping», sent 19:38:30 05 February 2011, Saturday by Ben Fritz: Perhaps a bug somewhere? It should be redirected to vim_dev, I think. Original message: > On Feb 5, 4:05 am, ZyX wrote: > > Reply to message «Re: ctrl-o with a mapping», > > s

Re: Delete lines matching hits

2011-02-05 Thread ZyX
Reply to message «Re: Delete lines matching hits», sent 02:48:53 06 February 2011, Sunday by Tim Chase: > If it is, it should be fairly possible to do it with a :s > command, something like > >:%s/^abc\ndef\n// It should be :%s/.*{pattern}.*\n// or, in this particular case: :%s/.*abc

Re: Delete lines matching hits

2011-02-06 Thread ZyX
ust do :call DeleteMatchingLines('abc\ndef') to delete all lines matching pattern `abc\ndef' (they are not put in any register). Original message: > Hy ZyX! > > On Sunday, February 6, 2011 2:00:54 AM UTC+1, ZyX wrote: > > It should be > > > :%s

Re: "q" macro-like action executed immediately and without specifying a register

2011-02-12 Thread ZyX
Reply to message «"q" macro-like action executed immediately and without specifying a register», sent 19:01:33 12 February 2011, Saturday by Scott Steele: > I'd like to be able to edit those 5 lines: > 5 A " # Great line" j > > It would save 3 keystrokes, which isn't a lot; but for a shor

Re: Vim Scripting Mode/Plugin

2011-02-18 Thread ZyX
Reply to message «Vim Scripting Mode/Plugin», sent 23:26:54 18 February 2011, Friday by Nathan Neff: I have written vimpluginloader plugin that is actually some kind of framework, the main point was to write plugin that will be able to reload itself and other plugins so that I do not need to re

Re: mapping F3 to map q ^B

2011-02-19 Thread ZyX
Reply to message «mapping F3 to map q ^B», sent 00:23:31 20 February 2011, Sunday by lylez: > I have > > map #2 ^[:unmap q^M > > which works > > and > > map #3 ^[:map q ^B^M > > which does not produce any errors, but doesn't work. Pressing F3 causes vim > to display "No mapping found". What

Re: Multiple Substitutes for 'includeexpr'

2011-02-19 Thread ZyX
Reply to message «Re: Multiple Substitutes for 'includeexpr'», sent 02:44:00 20 February 2011, Sunday by ZyX: By the way, you do not need to modify anything if you use perl-support plugin: it sets correct includeexpr option (strange, but it uses nested substitutes ('substi

Re: Multiple Substitutes for 'includeexpr'

2011-02-19 Thread ZyX
Reply to message «Multiple Substitutes for 'includeexpr'», sent 02:11:23 20 February 2011, Sunday by Roy Fulbright: > I tried adding a > second substitute to the assignment, separated by the vertical bar (|), > but this generates an error message while processing .vimrc. What do you mean by addi

Re: mapping F3 to map q ^B

2011-02-20 Thread ZyX
Reply to message «Re: mapping F3 to map q ^B», sent 11:08:51 20 February 2011, Sunday by Ben Schmidt: > P.S. You can do the escaping differently using the <> notation, but you > > still need a 'double escape' kind of thing: > :map whatever :map q C-b> You don't: ``execute "noremap q \"'' works a

Re: mapping F3 to map q ^B

2011-02-20 Thread ZyX
Reply to message «Re: mapping F3 to map q ^B», sent 12:47:16 20 February 2011, Sunday by ZyX: Sorry, you are write: is taken as cmdline mode shortcut, not as literal . Original message: > Reply to message «Re: mapping F3 to map q ^B», > sent 11:08:51 20 February 2011, Sunday >

Re: mapping F3 to map q ^B

2011-02-20 Thread ZyX
Reply to message «Re: mapping F3 to map q ^B», sent 03:18:13 20 February 2011, Sunday by lylez: > But that didn't. I still get the "No mapping found" message when I press > F3. The answer was given by Ben Schmidt: I forgot that means something in cmdline mode, so you need to escape it: replace

Re: Including into the current buffer from an external source

2011-02-21 Thread ZyX
Reply to message «Re: Including into the current buffer from an external source», sent 11:29:15 21 February 2011, Monday by Christian Brabandt: Your emulation is incorrect: try to get the same output as ``read! echo $'\0'''. In case of reading file my suggestion works just as well as yours, bu

Re: Including into the current buffer from an external source

2011-02-21 Thread ZyX
Reply to message «Re: Including into the current buffer from an external source», sent 18:15:19 21 February 2011, Monday by ZyX: > yours, but does not require so many code. If you want to emulate `read!' > correctly, call `read!' directly and then use difference between number o

Re: Copy/delete/paste strategy?

2011-02-21 Thread ZyX
Reply to message «Copy/delete/paste strategy?», sent 19:41:29 21 February 2011, Monday by David Kahn: > So what I do is move in regular mode to the first comma and press 'x' to > remove the comma, and then press 'p'... however instead of getting my > yanked text, I get the text now under the curs

Re: Including into the current buffer from an external source

2011-02-21 Thread ZyX
correctly. Replace ``read! echo $'\0''' with ``read! {placeholder_for_command_that_has_NULLS_in_its_output}'' and you will get `portable' example. Original message: > Hi ZyX! > > (Please don't top post!) > > On Mo, 21 Feb 2011, ZyX wrote

Re: Including into the current buffer from an external source

2011-02-21 Thread ZyX
Reply to message «Re: Including into the current buffer from an external source», sent 22:18:26 21 February 2011, Monday by ZyX: But yes, my example is specific to zsh with some option set (it is by default). For unix it should be ``echo -e '\0'''. Original message: &g

Re: Including into the current buffer from an external source

2011-02-21 Thread ZyX
ey are consumed and mean range of lines that should be kept. If you put `0' as last but one argument it will be transformed to 1. If you put `0' as a last argument, it will be transformed to number of lines read, so ``Read{read_arguments} 0 0'' means just the same as ``r

Re: Including into the current buffer from an external source

2011-02-22 Thread ZyX
which represents NL if you yank something and then parse @{register} variable in a script. > besides, I don't see, > how your code is "much less code" as you claimed initially. I thought I can write it with less keystrokes. I was wrong. Original message: > Hi ZyX! > > O

Re: v:fname mods

2011-02-22 Thread ZyX
Reply to message «v:fname mods», sent 15:32:51 22 February 2011, Tuesday by Roy Fulbright: > How can I modify v:fname to contain: A/B/C/Mymodule/Mymodule.pm (note: the > last part of the path is duplicated before adding '.pm') I used > 'substitute' to replace '::' with '/'. I looked for a vim fu

Re: v:fname mods

2011-02-22 Thread ZyX
Reply to message «Re: v:fname mods», sent 18:23:59 22 February 2011, Tuesday by ZyX: Sorry, no match groups here, just referencing the whole matched pattern in a second substitute. If `let &l:includeexpr="..."' does not work, use `setlocal includeexpr=...' with pr

Re: Need search pattern

2011-02-23 Thread ZyX
Reply to message «Re: Need search pattern», sent 21:16:54 23 February 2011, Wednesday by AK: > No, my mistake - that doesn't work.. -Rainyday You forgot that vim likes backslashes: \S\{59} or \v\S{59} (second uses «very magic»). Original message: > On 02/23/2011 01:14 PM, AK wrote: > > On 02/23

Where g:, b:, t: and w: variables are described?

2011-02-23 Thread ZyX
I recently found that there exists `g:' (without any text after `:') variable which is a dictionary that holds all other global variables, same for `b:', `t:' and `w:' variables. Can anybody point me in which help topic they are described? By the way, the following hack works: let g:["000"]

Re: Create mapping with '-c' command-line option

2011-02-25 Thread ZyX
Reply to message «Create mapping with '-c' command-line option», sent 18:52:13 25 February 2011, Friday by Jean-Rene David: You should be sure that 'compatible' is not set and `<' flag is not in 'cpoptions'. You may also try vim --cmd "nnoremap ZZ :qa" If you are in zsh, be sure that nobo

Re: using the help system in split screen mode

2011-02-28 Thread ZyX
Reply to message «Re: using the help system in split screen mode», sent 23:32:26 28 February 2011, Monday by Chris Jones: > How could I figure out the number of help windows in the current tab? let helpcount=len(filter(range(1, winnr('$')), \'getbufvar(winbufnr(v:v

Re: using the help system in split screen mode

2011-02-28 Thread ZyX
=1 | proc_1 elseif count>1 | proc_n endif (Note that `count' is alias to read-only variable v:count that is keeped for backwards compatibility, so you may not use it in your script with other meaning.) Original message: > On Mon, Feb 28, 2011 at 03:53:27PM EST, ZyX wr

Re: using the help system in split screen mode

2011-02-28 Thread ZyX
Reply to message «Re: using the help system in split screen mode», sent 04:51:03 01 March 2011, Tuesday by Ben Schmidt: > How do you figure that? You can easily get multiple buffers with > buftype=help perfectly naturally by splitting help windows and moving to > new help topics, using commands l

Re: using the help system in split screen mode

2011-03-06 Thread ZyX
Reply to message «Re: using the help system in split screen mode», sent 20:03:40 06 March 2011, Sunday by Chris Jones: > setl bt= | execute "vert help " a:s | execute ':redraw!' > .. > setl bt= | execute "help " a:s | execute ':redraw!' Just a minor fix: you don't need a second `execu

Re: using the help system in split screen mode

2011-03-06 Thread ZyX
it sees that the ‘load’ variable > exists and exits immediately & you're stuck with the old version. There is a workaround: :mksession! ses.vim :wqa! %vim -S ses.vim && rm ses.vim # will only remove ses.vim when vim exits Original message: > On Sun, Mar 06, 2011

Re: using the help system in split screen mode

2011-03-06 Thread ZyX
Reply to message «Re: using the help system in split screen mode», sent 23:13:02 06 March 2011, Sunday by Benjamin R. Haskell: > While testing, that's the kind of thing for which I'd set up something > like ZyX's examples. (A 'reload' function/mapping.) For testing purposes one can use frawor: a

Re: How does one mix ex commands and normal commands such as ma (to set a mark) in a script?

2011-03-08 Thread ZyX
Reply to message «Re: How does one mix ex commands and normal commands such as ma (to set a mark) in a script?», sent 18:38:22 08 March 2011, Tuesday by Marc Weber: > let mark = 'a' > exec 'normal m'.mark ``normal!'', not ``normal'' > or exec "normal /..." ``execute "/..."'' works as well. And

Re: Reformatting numbered lists [Was: formatlistpat escape \]

2011-03-15 Thread ZyX
Reply to message «Re: Reformatting numbered lists [Was: formatlistpat escape \]», sent 16:14:26 15 March 2011, Tuesday by Ben Schmidt: > You actually shouldn't include the double quotes when using the :set > command. Try without them! > > :set flp=^\\s*\\(\\d\\\|\\a\\)\\+\\.\\s* Or use let:

Re: How to close all files opened by different vim instances.

2011-03-17 Thread ZyX
Reply to message «How to close all files opened by different vim instances.», sent 11:08:22 17 March 2011, Thursday by Forest Wang: <...> > vim c& > ... > > Than I realized I need to close all of them. So I had to close them one by > one: > > %1 and :qa! > %2 and :qa! > ... > > Is there a bett

Re: script to download scripts from vim.org

2011-03-17 Thread ZyX
Reply to message «script to download scripts from vim.org», sent 19:17:06 17 March 2011, Thursday by Amit Agarwal: Some notes: 1. «grep pat1 | grep pat2 | sed 's/pat3/repl/g'» can be replaced with a single «sed '/pat1/! d; /pat2/! d; s/pat3/repl/g'». 2. Most tr calls can also be merged into sed

Re: script to download scripts from vim.org

2011-03-17 Thread ZyX
way, why you message contains lots of {plus}AD4, {plus}ALs and other {plus}A{something}? It is not very easy to find you reply with these. Original message: > On Thu, 2011-03-17 at 20:50 +-0300, ZyX wrote: > +AD4 Reply to message +AKs-script to download scripts from vim.org+ALs, > +AD4 sent 19:

Re: [VAM] Determine plugin names to put in vimrc

2011-03-18 Thread ZyX
Reply to message «Re: [VAM] Determine plugin names to put in vimrc», sent 18:52:37 18 March 2011, Friday by Tony Mechelynck: > Similarly, any *.vim script found in the plugin/ subdirectory of a > directory listed in 'runtimepath' will be sourced at the end of startup, > without the need for any e

Re: dict+=

2011-03-18 Thread ZyX
Reply to message «dict+=», sent 21:24:07 18 March 2011, Friday by Hofmann, Joachim: > execute "'set dict+= $VIM . "\\SQLDict\\" . db .".txt" > > I get errors because of the spaces. > what is the correct call for it? Either use escaping or, better, don't use :set for something more complex then

Is there a command-line equivalent for pumvisible()?

2011-03-20 Thread ZyX
I want to map and in command-line mode to vim equivalent of zle widgets history-beginning-search-backward and history-beginning-search-forward (it is what vim does when you press or in command line), but retain their functionality when completion is active. If I were talking about insert mo

Re: Multiple vim instances versus single instance?

2011-03-21 Thread ZyX
Reply to message «Multiple vim instances versus single instance?», sent 01:28:56 22 March 2011, Tuesday by howard Schwartz: > I have an unsubstantiaed belief that running multiple vim's with multiple > files, each writing viminfo, swap, backup, or session files, etc. -- now > and then, is asking

Re: How to close all files opened by different vim instances

2011-03-22 Thread ZyX
switch to another. It is not machine-effective though: for example, I have now above two hundred tabs in Opera which saves my time, but consumes lots of memory (30% of 4 GiB: 1,2 GiB for a single application. Next memory-consuming application takes only 3%). Original message: > ZyX wrote:

Re: which plugin management system to use?

2011-03-23 Thread ZyX
Reply to message «Re: which plugin management system to use?», sent 21:56:42 23 March 2011, Wednesday by Israel Chauca F.: > Listing every plugin like this: > > call Activate(plugin1, plugin2, plugin3,...) If you have more then 20 plugins, you will have to use ``vam#ActivateAddons([plugin1, plu

Re: which plugin management system to use?

2011-03-23 Thread ZyX
s vim files in `after' directory on VimEnter event, not the whole plugin. Original message: > On Mar 23, 2011, at 2:20 PM, ZyX wrote: > > Reply to message «Re: which plugin management system to use?», > > sent 21:56:42 23 March 2011, Wednesday > > > > by Israel Chauc

Re: which plugin management system to use?

2011-03-24 Thread ZyX
Reply to message «Re: which plugin management system to use?», sent 08:49:13 24 March 2011, Thursday by Marc Weber: > We could also extend VAM to allow directory prefixes: > > call ActivateAddons(["dir-a/snipmate","dir-b/python-support-plugin"]) > > However there must be strong arguments making

Re: which plugin management system to use?

2011-03-24 Thread ZyX
Reply to message «Re: which plugin management system to use?», sent 20:36:11 24 March 2011, Thursday by Israel Chauca F.: > It seems like I haven't been clear on this, whenever I wrote 'command line' > I was referring to Vim's command line mode, not the terminal. I'm sorry > for the confusion. >

Re: Why Ruby is not supported on Vim7.3 (needed for commandT)

2011-03-27 Thread ZyX
Reply to message «Why Ruby is not supported on Vim7.3 (needed for commandT)», sent 18:38:27 27 March 2011, Sunday by wei gao: Vim-7.3 does support ruby, so you should provide additional information about where did you get it. Original message: > Hi, > > I want to use the commandT plugin > http

Re: Curious about how to write vim help format txt.

2011-03-27 Thread ZyX
Reply to message «Curious about how to write vim help format txt.», sent 03:24:39 28 March 2011, Monday by Yue Wu: I personally do it manually now. Though I do not thing that it will be too hard to write perl script for it. Original message: > I like vim help style, it has toc, tag support, nic

Re: Why Ruby is not supported on Vim7.3 (needed for commandT)

2011-03-28 Thread ZyX
Reply to message «Re: Why Ruby is not supported on Vim7.3 (needed for commandT)», sent 06:13:59 28 March 2011, Monday by Benjamin R. Haskell: By the way, I used to download Vim from here: http://tuxproject.de.nyud.net/projects/vim/complete.7z . It has both gvim and vim windows builds with all i

Re: How to map { properly in coding

2011-03-28 Thread ZyX
Reply to message «How to map { properly in coding», sent 19:30:31 28 March 2011, Monday by wei gao: You can try the following: inoremap { {o}O (I suggest not to remove as you almost definitely will need to type a single `{' some time). Original message: > Hi, > > Is there any convinent wa

Re: how to justify i'm in VIM or GVIM?

2011-03-28 Thread ZyX
Reply to message «how to justify i'm in VIM or GVIM?», sent 06:22:31 29 March 2011, Tuesday by G G: if has("gui_running") " Code for gvim here else " Code for terminal vim here endif Original message: > hi, all > > when i write a vim script, how can i decide whether

Re: about submatch in VIM

2011-03-31 Thread ZyX
Reply to message «about submatch in VIM», sent 21:10:08 01 April 2011, Friday by Coiby: `\=' must be the at the beginning of the replacement string, so you should use `\="\/".(submatch(1)+1)' (`-1' is `decrease', not `increase'). By the way, you could have used `\@<=': $s!/\@<=[1-9]\+!\=sub

Re: Is it safe to build Vim with "make -j"?

2011-04-01 Thread ZyX
Reply to message «Is it safe to build Vim with "make -j"?», sent 14:43:17 01 April 2011, Friday by Michael Henry: It is not the official answer, but I can say that `make -j5' works for me and Gentoo ebuild maintainers did not make ebuild ignore user MAKEOPTS (where number of jobs is commonly d

Re: Problems using value returned by external command

2011-04-01 Thread ZyX
Reply to message «Re: Problems using value returned by external command», sent 10:21:48 02 April 2011, Saturday by Gary Johnson: > As you've figured out, Vim's system() function includes in its > return value the newline at the end of the command's output. If you > need the result without the ne

Re: Is there a plugin which allows I add tags in Visual Mode?

2011-04-03 Thread ZyX
Reply to message «Is there a plugin which allows I add tags in Visual Mode?», sent 11:47:20 03 April 2011, Sunday by Raincole Lai: Yes, it is surround.vim: when you are in visual mode you can type `s' and get selected text surrounded with `...'. Original message: > I want to select some text i

Re: non-interactive vimdiff to stdout

2011-04-03 Thread ZyX
Reply to message «non-interactive vimdiff to stdout», sent 01:20:44 04 April 2011, Monday by geronime: > I would like a non-interactive output of "vimdiff file1 file2" to STDOUT or > a tip to some diff program with similar formatting to vimdiff. If you want to get a syntax-coloured diff, you can

Re: non-interactive vimdiff to stdout

2011-04-04 Thread ZyX
mo: http://basis.et-lab.ru/habrahabr/copy/index.html, article: http://habrahabr.ru/blogs/webdev/114322/ (Russian)). Unlike other solutions that does not require JavaScript and does not break if lines wrap. None of these is currently implemented by TOHtml. Original message: > On Apr 4, 12:15

Re: non-interactive vimdiff to stdout

2011-04-05 Thread ZyX
pler to fix in style dictionary generation code, I just don't think someone will want to edit these). Some questions: 1. What is `pre-wrap'? 2. What is the problem with buffers with special `buftype'? Do you have in mind generated file name (so I won't have such pr

Re: non-interactive vimdiff to stdout

2011-04-05 Thread ZyX
heck that buftype is > either blank or 'help', and if not, skipping the 'fileencoding' and > starting with 'encoding' for the HTML document. I wonder why you use non-utf8 encodings at all: if one wants different encoding it is not too difficult to add a (which is

Re: for help about the search history

2011-04-07 Thread ZyX
Reply to message «for help about the search history», sent 18:17:23 07 April 2011, Thursday by wxuyec: > After I type / to start search, if I want to use > UP key to go through the searching history, > I got a character "A" inserted. It means that vim failed to recognize a sequence of bytes (like

Re: or s: - General questions about functions

2011-04-12 Thread ZyX
Reply to message « or s: - General questions about functions», sent 10:41:25 12 April 2011, Tuesday by rameo: > After a half year of use of VIM, I still don't understand what is, and > if there is a difference between and "s:". (even after reading > the help file) It is simple: if a function nam

Re: Inserting output of Ex command into buffer

2011-04-12 Thread ZyX
Reply to message «Re: Inserting output of Ex command into buffer», sent 05:32:06 13 April 2011, Wednesday by Charles E Campbell Jr: > Why not try your hand at writing a function to do that? Admittedly, it > would have to begin with a capital letter. It is not possible: Vsystem("redir @a> | echo

Re: Inserting output of Ex command into buffer

2011-04-13 Thread ZyX
t that if function argument calls redir itself then redir inside Vsystem function won't work. Original message: > On 2011-04-13, ZyX wrote: > > Reply to message «Re: Inserting output of Ex command into buffer», > > sent 05:32:06 13 April 2011, Wednesday > > > >

Re: or s: - General questions about functions

2011-04-13 Thread ZyX
', second will replace it with `\=MyFunctionName(submatch(0))'. You should half the number of backslashes to make it mean the same). Original message: > Thank you very much Tony and ZyX. > > My functions names do only contains letters, digits and underscores. > If I've u

Re: Matching < and >

2011-04-14 Thread ZyX
Reply to message «Matching < and >», sent 00:06:42 15 April 2011, Friday by lazloman: There is a 'matchpairs' option: add setlocal matchpairs+=<:> to a filetype script for language you want to highlight (ftplugin/xml.vim, ftplugin/xml/my.vim or such). Original message: > I'd like for vim to

Re: syntax coloring

2011-04-15 Thread ZyX
Reply to message «syntax coloring», sent 11:06:33 15 April 2011, Friday by rameo: > When I start VIM it shows my tabs and reloads my buffers from the last > time. > > I use a session to do this. > > au VimEnter * exe "so d:\\Session.vim" > au VimLeave * exe "'mksession! d:\\Session.vim'" You ha

  1   2   3   4   5   >