Re: Date in a boilerplate file

2020-06-28 Thread Guido Milanese
Thank you. I was indeed considering something like this -- perhaps a srot of "preprocessing" of the file. Best regards, guido Il giorno sab 27 giu 2020 alle ore 16:43 Mateusz Okulus ha scritto: > On Tue, Jun 23, 2020 at 09:56:34AM -0700, Guido Milanese wrote: > > In a project

Re: Date in a boilerplate file

2020-06-24 Thread Guido Milanese
crystal clear! thanks again, guido Il giorno mar 23 giu 2020 alle ore 23:51 Tim Chase ha scritto: > On 2020-06-23 14:02, Guido Milanese wrote: > >> :%s/<\([^>]*\)>/\=get({'TODAY':strftime('%c'), 'AUTHOR':$USER}, > >> submatch(1), submatch(1)) > > > >

Re: Date in a boilerplate file

2020-06-23 Thread Guido Milanese
Good! Now I think I have understood (at last...) how to use autocmd! guido On Tue, Jun 23, 2020 at 09:56:34AM -0700, Guido Milanese wrote: > >In a project I am developing, I have written some boilerplate files to be > >used as headers for Markdown/LaTeX documents. One of the li

Re: Date in a boilerplate file

2020-06-23 Thread Guido Milanese
Very generous, thank you. I'll study your code and I'm sure it will help me a lot. guido > In order to keep track of file versions, I have a .vimrc file that updates > a timestamp every time the file is saved. That sounds similar to this > problem. > > I've attached the complete file, but in

Re: Date in a boilerplate file

2020-06-23 Thread Guido Milanese
Thank you very much for this suggestion. I think I will map this 's' command to an available key. An additional question, if you do not mind: why submatch(1), submatch(1) and not submatch(1), submatch(2) Thank you again! guido On 2020-06-23 09:56, Guido Milanese wrote: > &g

Date in a boilerplate file

2020-06-23 Thread Guido Milanese
In a project I am developing, I have written some boilerplate files to be used as headers for Markdown/LaTeX documents. One of the lines contains the document date, and ideally it should be: date: I know how to insert date from command line, but is it possible to embed the command in the

Sub-menu lists?

2018-02-14 Thread Guido Milanese
e documentation? Thank you very much! guido, from Northern Italy -- Guido Milanese - Professor of Classics - Docteur H.C. Paris ICP Universita' Cattolica d.S.C., Milano - Brescia http://docenti.unicatt.it/ita/guido_fabrizio_milanese <http://www.arsantiqua.org> -- -- You received this mes

Re: Saving key mappings

2018-01-02 Thread Guido Milanese
p-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 a topic in the > Google Groups "vim_use" group. > To unsubscribe from this topic,

Saving key mappings

2017-12-30 Thread Guido Milanese
I know that macros and mappings are one of the most frequently discussed topics, so I do apologise if it is a question posed (n = n + 1) times. I have written a program that, obviously among other tasks, calls (g)vim and opens a given file. I would like to instruct my program to call (g)vim

Savin macros for later use

2017-12-30 Thread Guido Milanese
I know that macros and mappings are one of the most frequently discussed topics, so I do apologise if it is a question posed (n = n + 1) times. I have written a program that, obviously among other tasks, calls (g)vim and opens a given file. I would like to instruct my program to call (g)vim

Re: Vim as external editor for thunderbird

2017-02-07 Thread Guido Milanese
Good news. I found an extremely simple solution here: http://globs.org/thread.php?lng=fr=3099=1 The trick is: 1. open a 'write' session (a new message or a reply) 2. click on the toolbar (= composition toolbar) 3. drag the 'external editor' icon to the toolbar. Obviously, all of this after

Re: Vim as external editor for thunderbird

2017-02-06 Thread Guido Milanese
Thanks for the suggestions. However: 1. "External Editor" does not work with the version of thunderbird I recently installed (45.7.0 on Linux xubuntu). Firefox refuses even to download it, but I succeeded with Chromium. 2. As I mentioned, I am using

Vim as external editor for thunderbird

2017-02-05 Thread Guido Milanese
Greetings from a rainy Northern Italy! After a new installation of my Linux box (xubuntu 16.10) I noticed that in the current version of thunderbird I cannot use (g)vim as external editor, nor was an appropriate plugin listed in the thunderbird pages ( _Muttator_ does not call vim, it should

Re: Load one key- map

2016-10-24 Thread Guido Milanese
On the 24th of October 2016 23:19:52 UTC+2, Tony Mechelynck wrote: > After the user leaves (closes) Vim, the keys aren't mapped anymore. > Starting Vim without the appropriate -c or -S command-line switch will > simply not load it. Yes, sure... sorry! I was confused with the mapping I have

Re: Load one key- map

2016-10-24 Thread Guido Milanese
Perfect, thank you. I think that using "-c" for short commands and a file for long sequences is a very wise choice. An additional question: how could I unmap the keys leaving the vim session without asking my user to unmap the keys manually? Could I run again vim "silently" from my bash script

Load one key- map

2016-10-23 Thread Guido Milanese
Dear all, I'm probably making a mountain out of a molehill, but I'm lost in a (probably) very simple problem. I have written a simple bash script that performs some transformations in a file, calls (g)vim, waits for the user to edit the file, and exits. The problem is: * I have defined one

Re: vim: thesaurus

2016-02-14 Thread Guido Milanese
With my warmest thanks to all those who replied to my question, I take the liberty of posting a sort of summary about "thesauri" and the like. 1. *ENGLISH ONLY* 1a. Spelling checkers The internal spelling checkers are excellent -- several varieties of the language. 1b. Grammar

vim: thesaurus

2016-02-12 Thread Guido Milanese
-- 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://w

Re: Digest for vim_use@googlegroups.com - 6 updates in 2 topics

2014-09-22 Thread Guido Milanese
://groups.google.com/group/vim_use/t/ee61dc8cc6b74baa?utm_source=digestutm_medium=email Guido Milanese guido.milan...@gmail.com: Sep 21 07:30AM -0700 Please excuse me for asking this very trivial question, which I'm afraid has already been discussed, but I got confused browsing manuals, wiki and group

Indentation problem

2014-09-21 Thread Guido Milanese
Please excuse me for asking this very trivial question, which I'm afraid has already been discussed, but I got confused browsing manuals, wiki and group. I have a file of notes about books I have studied and I would like to obtain this structure (PN = real page numbers): PN[TAB]my notes If

Re: Manu missing: Ubuntu 11.04

2011-08-03 Thread Guido Milanese
On 2 Ago, 12:47, John Little john.b.lit...@gmail.com wrote: Yes, it's a Unity thing.  (I use KDE myself.)  See http://askubuntu.com/questions/6784/is-it-possible-to-make-indicator-... for some workarounds.  For example, if I type in a terminal     UBUNTU_MENUPROXY= gvim (note the exact

Manu missing: Ubuntu 11.04

2011-07-31 Thread Guido Milanese
-- better: some solutions that did not work for me. Many thanks for your kind help. guido (Italy) -- Guido Milanese - Professor of Latin The Catholic University, Milano, Italy http://docenti.unicatt.it/ita/guido_fabrizio_milanese http://www.arsantiqua.org -- You received this message from

Re: Manu missing: Ubuntu 11.04

2011-07-31 Thread Guido Milanese
Sorry: it was obviously MENU missing. I am typing with the unsolicited cooperation of one of my cats... 2011/7/31 Guido Milanese guido.milan...@gmail.com: I am sorry to ask again the same question after some years, but the answer I received does not work now. To my excuse, I may say that I

Re: How to tell encoding without open the file?

2009-01-26 Thread Guido Milanese
On Jan 25, 5:13 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: I tried it with one of my files, and when I asked for its encoding, with         file --mime-encoding ~/pub/index.htm it answered: pub/index.htm: text/html meaning, IIU the manpage correctly, that my file has an

Re: How to tell encoding without open the file?

2009-01-24 Thread Guido Milanese
On Jan 24, 5:56 am, Yongwei Wu wuyong...@gmail.com wrote: I have a small open-source program that does this.  Search for tellenc inhttp://wyw.dcweb.cn/. Very nice! But I think that for simple tasks, even a simple file namefile can be enough (of course in any Unix-like OS). I use 'file' to