vim: thesaurus
Dear Experts, I am using gvim (on xubuntu 15.10) for most of my daily work. I write my scholarly work using LaTeX + BibTeX, and I normally use the excellent LaTeX plugin. I recently tried TeXStudio, and the only feature I found better was the easy access to the [Libre | Open]office thesaurus. I browsed the archives of this group and googled a while, but I did not find a real answer to this problem. Being no native speaker of English this feature is particularly important for me. Is the online thesaurus plugin the only possible solution? Many thanks for your kind attention, guido, italy -- Guido Milanese - Professor of Classics - Docteur H.C. Paris ICP http://docenti.unicatt.it/ita/guido_fabrizio_milanese -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Why isn't replaced text registered?
Hello, the r and R commands count to insertions and deletions. Contrary to the other commands of this group the deleted text isn't stored into a register. I can image, that the historical reason is to be found on the level of implementation, because replacement spans over multiple inputs. Is there also a rationale on the level of usability? Kind regards, Elmar -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Feature or bug? Funny behaviour of cw on whitespace.
> It doesn't say why though, and the reason IIUC is that vi did it that way, > and it's such a basic command that millions are used to it. IMO we'd be > better off with consistency, c{motion} is like d{motion} then enter insert > mode, without this special case, but after 40 years... > > Regards, John Little Either fully consistent, as you expect, or fully speaking as "change word". The current translation is the mixed case "change to end of word". Regards Elmar -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Feature or bug? Funny behaviour of cw on whitespace.
On Friday, February 12, 2016 at 1:53:00 AM UTC+13, Erik Christiansen wrote: > But ":h cw" opens with a defence of this "Special case: ...change-word". It doesn't say why though, and the reason IIUC is that vi did it that way, and it's such a basic command that millions are used to it. IMO we'd be better off with consistency, c{motion} is like d{motion} then enter insert mode, without this special case, but after 40 years... Regards, John Little -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Repetition related questions
Hello all, I bundle some questions related to repetition. 1.) I can repeat the operation by the .-command, one of the most brilliant features of vim. Is there a command to repeat the last movement or even the last movement-operation-pair? 2.) To enable the repetition of t, T, f, F by "," and ";" they need to be stored somewhere. Are these variables accessible? What's their names? 3.) The .-command repetition remembers the count, the "," and ";" don't. This feels a little inconsistent. Is there a rationale behind? Thank you very much. Elmar -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vim: thesaurus
Hi Guido, I too use vim for my technical writing. AFAIK, i think the online thesaurus is the only thing available. (I hope we find out that there are other options.) You might also want check out the Grammer checker plugin for vim: http://www.vim.org/scripts/script.php?script_id=3223 If you find any other things, please share! Russ On Fri, Feb 12, 2016 at 10:44:05AM +0100, Guido Milanese wrote: > Dear Experts, > I am using gvim (on xubuntu 15.10) for most of my daily work. I write > my scholarly work using LaTeX + BibTeX, and I normally use the > excellent LaTeX plugin. I recently tried TeXStudio, and the only > feature I found better was the easy access to the [Libre | Open]office > thesaurus. I browsed the archives of this group and googled a while, > but I did not find a real answer to this problem. Being no native > speaker of English this feature is particularly important for me. Is > the online thesaurus plugin the only possible solution? > > Many thanks for your kind attention, > guido, italy > > -- > Guido Milanese - Professor of Classics - Docteur H.C. Paris ICP > http://docenti.unicatt.it/ita/guido_fabrizio_milanese > > -- > -- > 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 vim_use+unsubscr...@googlegroups.com. > 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vim: thesaurus
On 2016-02-12 09:44:05 +, Guido Milanese said: Dear Experts, I am using gvim (on xubuntu 15.10) for most of my daily work. I write my scholarly work using LaTeX + BibTeX, and I normally use the excellent LaTeX plugin. I recently tried TeXStudio, and the only feature I found better was the easy access to the [Libre | Open]office thesaurus. I browsed the archives of this group and googled a while, but I did not find a real answer to this problem. Being no native speaker of English this feature is particularly important for me. Is the online thesaurus plugin the only possible solution? One thing that may be used directly with Vim is the file mthesaur.txt from Gutenberg: http://www.gutenberg.org/files/3202/. But I haven't found it terribly useful (way too many synonyms). Another possibility is to download an .oxt file, change the suffix to .zip, uncompress it, and open the thesaurus .dat file (it is a text file). I have taken a quick look at one of them, and it should not be too hard to turn it into a format usable by Vim: removing the first line and the parts in parentheses should be enough. Hope this helps, Nicola -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vim: thesaurus
On 2016-02-12 14:16:50 +, Nicola said: Another possibility is to download an .oxt file, change the suffix to .zip, uncompress it, and open the thesaurus .dat file (it is a text file). I have taken a quick look at one of them, and it should not be too hard to turn it into a format usable by Vim: removing the first line and the parts in parentheses should be enough. Mmh, not so fast. Each entry in a .dat file has this form: abbreviate|2 (verb)|reduce (generic term) (verb)|abridge|foreshorten|shorten|cut|contract|reduce|... You need to put each entry on a single line that looks like this: abbreviate|reduce|abridge|foreshorten|... This may be done, for example, with awk: awk '/\|[0-9]+$/{if (NR!=1) print "";sub(/\|[0-9]+$/,"");printf $0;next}{printf "|"$0}END{print "";}' th_en_US_v2.dat >th_en_US_v2.txt (This command is a single line.) Then, you may remove the spurious parts, like (verb) or (generic term). That may be done by editing the thesaurus in Vim: :%s/([^)]\+)//g There are some other adjustments to be done, like || to be replaced by |, and some spaces to be removed. But, there is an inherent limitation in Vim (as far as I know). If you ask for suggestions in LibreOffice/OpenOffice for 'abbreviate', you'll get the list above. Vim, instead, will show you *all* the words in *all* the lines in the thesaurus containing 'abbreviate'. So, for example, since the thesaurus also contains: bowdlerise|1 (verb)|bowdlerize|expurgate|...|abbreviate (generic term)|... you'll get 'bowdlerise', too. I wish there were an option to tell Vim to offer only the suggestions in those lines of a thesaurus that *start* with a given word. Nicola -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vim: thesaurus
On 2016-02-12 18:04:09 +, Nicola said: On 2016-02-12 14:16:50 +, Nicola said: Another possibility is to download an .oxt file, change the suffix to .zip, uncompress it, and open the thesaurus .dat file (it is a text file). I have taken a quick look at one of them, and it should not be too hard to turn it into a format usable by Vim: removing the first line and the parts in parentheses should be enough. Mmh, not so fast. Each entry in a .dat file has this form: abbreviate|2 (verb)|reduce (generic term) (verb)|abridge|foreshorten|shorten|cut|contract|reduce|... Another idea: one might set completefunc to call a function that searches a file in the above format. Such function might even use the associated .idx file for faster retrieval. Nicola -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vim: thesaurus
Dear Experts, I am using gvim (on xubuntu 15.10) for most of my daily work. I write my scholarly work using LaTeX + BibTeX, and I normally use the excellent LaTeX plugin. I recently tried TeXStudio, and the only feature I found better was the easy access to the [Libre | Open]office thesaurus. I browsed the archives of this group and googled a while, but I did not find a real answer to this problem. Being no native speaker of English this feature is particularly important for me. Is the online thesaurus plugin the only possible solution? Many thanks for your kind attention, guido, italy Hi Guido I've been working on a thesaurus that uses aiksaurus: https://github.com/slackhead/vim-vaiksaurus It's quite a simple plugin and only requires aiksaurus from here: http://aiksaurus.sourceforge.net/ Hope that you find it useful. David -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Feature or bug? Funny behaviour of cw on whitespace.
> As pointed out once or twice upthread, please read ":h cw", in particular > the last paragraph. For those who can see, it is there. > > Erik Shouldn't an editor startup with the most consistent settings by default? Elmar -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Feature or bug? Funny behaviour of cw on whitespace.
On 12.02.16 03:02, Elmar Hinz wrote: > > > It doesn't say why though, and the reason IIUC is that vi did it > > that way, and it's such a basic command that millions are used to > > it. IMO we'd be better off with consistency, c{motion} is like > > d{motion} then enter insert mode, without this special case, but > > after 40 years... > > > > Regards, John Little > > Either fully consistent, as you expect, or fully speaking as "change > word". > > The current translation is the mixed case "change to end of word". As pointed out once or twice upthread, please read ":h cw", in particular the last paragraph. For those who can see, it is there. Erik -- -- 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 vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.