Soren Andersen | 1 Jul 03:57 2002

Re: Save file w/ orig mtime?

On Sat, 29 Jun 2002, Colin Keith wrote:

> On Sat, Jun 29, 2002 at 06:58:14PM +0000, Soren Andersen wrote:
> : it's got the same 'last modified time' as it did before.

> Doesn't that rather defeat the purpose of a 'last modified time' ?

Well, of course it does. But the example for testing that you chose is
the counter-case to why I would want this, i.e. you are appending new
text but I would not be. I would typically be wanting to be
(re)formatting some textfile (say, a news or email posting saved to my
hard disk in the past) but not changing anything but wrapping /
whitespace, therefore. In that case I'll find it very helpful not to
have the 'mtime' updated in a way that truly would be misleading as to
when the human-meaningful _content_ of the file was last changed.
That's "why".

> Still let see, this works on UNIX. Although you do get the "this file
> has been modified since you last saved it" on subsequent saves, but I'm
> sure you can fix it if it bothers you:

 " Cause the last modified time 'not to be changed'
 " when saving a file. Actually snapshots the mtime
 " before saving, then resets after saving.
 " Needs +perl.
 " - sed bob.

Thank you very much for the work you put in. I have to admit I am
puzzled by some of it. Who or what is "- sed bob" anyway? Is that a
nickname of someone, or a reference to something about VIM?
(Continue reading)

X-Face
Picon

vimtutor portuguese translation

Hi,

Is there any page where I can see the translations available for vimtutor ?
Here in my Debian Woody 3.0, I can find some translations but I couldn't
find any central reference about vimtutor translations.

I'm interested in doing the portuguese translation (pt).

Only if there isn't one yet, of course :-)

[]s,

Luis Alberto.

--

-- 
   Luis Alberto Garcia Cipriano - lagc <at> cipsga.org.br - ICQ#30169722
         Músico, Programador, Tradutor e Jornalista voluntário
http://www.google.com/search?hl=pt&q=%22Luis+Alberto+Garcia+Cipriano%22

CIPSGA - Software Livre no Brasil   ->   http://www.cipsga.org.br
Debian GNU/Linux - 100% Livre       ->   http://www.debian.org
Projeto Debian-BR                   ->   http://debian-br.cipsga.org.br

Colin Keith | 1 Jul 12:49 2002
Picon

Re: Save file w/ orig mtime?

On Mon, Jul 01, 2002 at 01:57:31AM +0000, Soren Andersen wrote:
> text but I would not be. I would typically be wanting to be
> (re)formatting some textfile (say, a news or email posting saved to my

*nod* Makes sense.
> Thank you very much for the work you put in. I have to admit I am
> puzzled by some of it. Who or what is "- sed bob" anyway? Is that a

Ignore it, its meaningless :)

> "~/vim/mtime.vim"). Then if I ':source [pathtothisfile]mtime.vim' I
> will be able to do... something ... 

Correct.

> 		openbox% vim header.js -c 'so ~/vim/mtime.vim|call append("$", "//Test")|wq'

On this line I'm opening the file and executing the commands:
 source mtime.vim   " load the instructions
 call append( ... ) " Do something to change the file
 wq                 " Save and quit as normal.

This is just because I could show it on the command line.

> Sorry but the commands are pretty opaque to me. OK ... My understanding
> is that you are in a manner typical of an expert user, combining

heh.

> several things into a very concise (and obfuscated) form: sourcing
(Continue reading)

Paul Robins | 1 Jul 14:36 2002

folding: some questions and comments (long)

(Please forgive me if a second, similar post to the one below appears on 
this list. I lost up my original posting but I'm still not sure if it 
survived somewhere in the posting process).

I'm a brand new vim user, quite excited to find a powerful, supported 
text editor with a good implementation of "folding". I have however, 
several comments and questions related to vims implementation of 
folding. For info, I'm using exclusively foldmethod=marker.

As an ex-Inmos person, where folding was almost a religion I'm a keen 
"folder". The "style" of folding used in some of those long gone editors 
that I used in my youth was (IMHO) elegant and powerful. I'd like to 
make vim look and behave a little more like that, if possible. For 
starters, there are a couple of things I'd like to be able to do. Maybe 
others may also like some of these ideas...

1) Indent folded lines to the same level as the fold's contents:

eg:

if (some test) {
    ... this stuff is folded
    ... so is this

    if (some other test) {
       ... also folded
    }
}

reads much nicer than :
(Continue reading)

Kontra, Gergely | 1 Jul 15:11 2002
Picon

Re: dialog box guis

>Look at xdialog.  http://www.chez.com/godefroy/
>> When I asked for you told me: write it in your favourite scripting
>> language.
>>
>> I'm now asking, wheter anybody has such an implementation (a mini
>> example, that works, and has a gtk/tk/whatever dialog box to start with)

Well, this is a separate program, so it could be slow. The builtin input
dialog is quicker, and portable (even in console)
On the other side, it doesn't support entry boxes AND checkboxgroups and
dropdown lists in one dialog.

Gergo

+-[Kontra, Gergely  <at>  Budapest University of Technology and Economics]-+
|         Email: kgergely <at> mcl.hu,  kgergely <at> turul.eet.bme.hu          |
|  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
+-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net

T o F | 1 Jul 15:45 2002
Picon

Columns delimiter

Hi !
There is something I'm looking for in vim, which is quite useful for
syntax IMHO: a line which would delimit the 80th column (or another one
if anybody need).

Something like UltraEdit on MSWin, or netbeans, or... 

I though of changing a little bit the background of the >80 characters,
so that any text in the zone would be obvious, but not forbiden.

Any idea how to make this ?
 I tried it with syntax... (match...) but hard to manage tabs,
furthermore it would hilight background *only* if the text is beyond the
80th column.
 I tried to modify vim sources, why not making a patch with a new
option. But I'm quite lost, where should I start ?

Thanx, any idea welcomed :)

Tof

David A de Gruyl | 1 Jul 15:55 2002

Re: Columns delimiter


* on [02-07-01 09:46] T o F <mailinglist1 <at> free.fr> 
* wrote <1025531131.7053.16.camel <at> hyperion>:
> Hi !
> There is something I'm looking for in vim, which is quite useful for
> syntax IMHO: a line which would delimit the 80th column (or another one
> if anybody need).

I use:
match  eightyColumn  /\%>80v.*/
or:
syn match  eightyColumn  /\%>80v.*/

the .* highlights everything greater than 80th virtual column. you may
only want to highlight the 80th column itself so:

match  eightyColumn  /\%>80v/

(this is actually almost verbatim from help match)

David

--

-- 
David de Gruyl <david <at> bhaermandegruyl.org>

Armenio Pinto | 1 Jul 16:28 2002
Picon

Search the word under cursor

Hi there,

     I would like to insert the current word in the search text, so, I tried
the following: <ESC>/<C-O>

But it didn't work... It inserts "<C-O>" as the search text! Can anyone help
me? Thanks in advance,

Arménio Pinto

T o F | 1 Jul 16:58 2002
Picon

Re: Search the word under cursor

Isn't this the star (*) key ? or hash (#) for reverse ?

Tof

On Mon, 2002-07-01 at 16:28, Armenio Pinto wrote:
> Hi there,
> 
>      I would like to insert the current word in the search text, so, I tried
> the following: <ESC>/<C-O>
> 
> But it didn't work... It inserts "<C-O>" as the search text! Can anyone help
> me? Thanks in advance,
> 
> Arménio Pinto
> 

T o F | 1 Jul 17:27 2002
Picon

Re: Columns delimiter

well, thanx, I didn't see this...
But if it remove the tabs problem, it's not exactly what I'm looking
for... since I want to hilight places where there is no text.

On Mon, 2002-07-01 at 15:55, David A de Gruyl wrote:
> 
> * on [02-07-01 09:46] T o F <mailinglist1 <at> free.fr> 
> * wrote <1025531131.7053.16.camel <at> hyperion>:
> > Hi !
> > There is something I'm looking for in vim, which is quite useful for
> > syntax IMHO: a line which would delimit the 80th column (or another one
> > if anybody need).
> 
> I use:
> match  eightyColumn  /\%>80v.*/
> or:
> syn match  eightyColumn  /\%>80v.*/
> 
> the .* highlights everything greater than 80th virtual column. you may
> only want to highlight the 80th column itself so:
> 
> match  eightyColumn  /\%>80v/
> 
> (this is actually almost verbatim from help match)
> 
> David
> 
> -- 
> David de Gruyl <david <at> bhaermandegruyl.org>
> 
(Continue reading)


Gmane