Hi, I'm trying to figure out how to easily have vim place a closing tag after I've typed the opening tag. For example, if I have typed <mytag>, I want to...
23045
Andre Pang
ozone@...
Nov 3, 2001 12:39 pm
hi, i'm trying to implement a multi-window view on the same file, which looks something like this: +------+-----+ ... +------+-----+ so that you can have two...
23046
Alper Ersoy
aersoy@...
Nov 3, 2001 12:39 pm
... Hello, There's a script at http://vim.sourceforge.net/scripts/script.php?script_id=13 advertised to do specifically what you want to do (I haven't tried it...
23047
Brian Parker
bparker@...
Nov 3, 2001 12:55 pm
Awesome! Thanks....
23048
Bram Moolenaar
Bram@...
Nov 3, 2001 1:09 pm
... What happens with ":split f1", while you are already editing 'f1", is that Vim thinks you want to reload the file "f1". You can only have one buffer for a...
23049
Bram Moolenaar
Bram@...
Nov 3, 2001 1:16 pm
Andre Pang wrote; ... It does sound like a nice feature. It should be simple to implement. If someone makes a patch for it that's simple and good I might...
23050
Paul Tremblay
phthenry@...
Nov 3, 2001 3:09 pm
... Yes. In fact, I had set this in my .vimrc: nmap j=gj nmap k=gk But that completely limits my ability to scroll to scrolling one line at a time. Vim, and...
23051
K T Ligesh
lxlingan@...
Nov 3, 2001 3:19 pm
... I would like to know whether the thing worked in the end. I had fixed the problem and put up the new version at my site. http://www.lxlinux.com/gdbvim.tgz ...
23052
Paul Tremblay
phthenry@...
Nov 3, 2001 3:22 pm
WOOPS! Forgot to include the file in my last email. I included it in this email. ... Yes. In fact, I had set this in my .vimrc: nmap j=gj nmap k=gk But that...
23053
Piet Delport
siberiyan@...
Nov 3, 2001 6:33 pm
... They're essentially a way of doing multi-line matches. For example: /foo\_.*bar will match everything between (and including) foo and bar, across multiple...
23054
Alan G. Isaac
aisaac@...
Nov 3, 2001 6:56 pm
... You mean you told it not to! You have to decide what you want: it you want two contradictory things, obviously you cannot have them both at the same time....
23055
Piet Delport
siberiyan@...
Nov 3, 2001 7:56 pm
... I think the terms word ("small word") and WORD ("big word") make much more sense, especially considering the basic movement commands (`w' and `W') that...
23056
Paul Tremblay
phthenry@...
Nov 3, 2001 8:59 pm
... I want gvim to scroll on screen line at a time. It doesn't matter if I map this key sequence or not. Let me state again: I have very long lines of text...
23057
Piet Delport
siberiyan@...
Nov 3, 2001 9:15 pm
... Hmm, <C-6> is normal for the US keyboard layout (which gets used here in SA), as `^' is actually a shifted `6'. I'm guessing that <C-6> is what's used...
23058
Piet Delport
siberiyan@...
Nov 3, 2001 9:40 pm
... One possible way of shortening this is through a user command: function LetDefault(opt, val) if !exists(opt) exec 'let '.a:opt.'='.a:val endif endfunction ...
23059
Gary Johnson
garyjohn@...
Nov 3, 2001 9:45 pm
... Yes, that's what I meant. I'm sorry I wasn't more clear. Thanks, Benji. Gary -- Gary Johnson | Agilent Technologies ...
23060
Piet Delport
siberiyan@...
Nov 3, 2001 10:11 pm
... I, for one, prefer the current default of leaving it off. :-) ... Adapted from the example at the top of diff.txt: if &diff set number endif A more...
23061
Alper Ersoy
aersoy@...
Nov 3, 2001 10:42 pm
... Paul, I can perfectly scroll up and down by screen lines (e.g. without going thru the EOLs) by gj and gk. Have you tried them without mapping them ...
23062
Piet Delport
siberiyan@...
Nov 3, 2001 11:03 pm
... I think the problem here is that Vim was designed around the concept of `real' lines, not screen lines. Things like the 'wrap' setting and gj/gk/g0/g$...
23063
Peoter Veliki
peoter_vim@...
Nov 3, 2001 11:49 pm
Using an external scripting language I can create functions that uses a timer and a callback mechanism, this is good for things like continuous scrolling. I...
23064
Rory Campbell-Lange
rory@...
Nov 3, 2001 11:51 pm
I've been trying to format some mail messages to my preferred style, which is the mutt default of "> ". ... I've tried setting fo=tcq and then gqap after...
23065
Brian Medley
bpmedley@...
Nov 4, 2001 12:28 am
... I believe the original poster was talking about grabbing the schollbar and moving it up and down with the mouse. I may be mistaken, though.. -- ...
23066
Benji Fisher
benji@...
Nov 4, 2001 3:24 am
... If you want to use :so! (reading Normal-mode commands from a file) then I suggest you try the -w option when invoking vim. ... At least, use a ":" to enter...
23067
Benji Fisher
benji@...
Nov 4, 2001 3:26 am
... Exactly what did you do to set $VIM? What do you get from ... before and after trying to set it? How is it not working? --Benji Fisher...
23068
Benji Fisher
benji@...
Nov 4, 2001 3:55 am
... That's the right idea, but there are a few problems. You forgot "a:" in the first line of the function, and you should have called your command with "bar"...
23069
Benji Fisher
benji@...
Nov 4, 2001 4:08 am
... Have you actually tried this? My guess is that this would not be too slow on my computer, which is a couple of years old. ... If you use <C-W>w with a...
23070
Benji Fisher
benji@...
Nov 4, 2001 4:13 am
... I thought so, too, at first. After some thought, I think I understand the question, and I do not know a solution. There is a difference between scrolling...
23071
Benji Fisher
benji@...
Nov 4, 2001 4:17 am
... [snip] ... I have noticed this, too, but never bothered to put appropriate maps into my vimrc file. (That is, the inconsistency never bothered me enough.)...
23072
Andre Pang
ozone@...
Nov 4, 2001 4:21 am
... Thanks for all the help guys :). I don't actually need to set local variables inside a function (I was using it to set default values for global...
23073
Andre Pang
ozone@...
Nov 4, 2001 4:40 am
... I did, and it didn't appear too slow, but it had some other problems which I won't go into (I can send you the source and describe the problem if you're...