On Tue, 9 May 2006, Gerald Lai wrote:
[snip]
Don't call me picky ... but there's the problem (at least if
understand the help for the path option correctly). If a path ends
with ** it searches only for directory names, while * searches only
the direct subdirectories for the given path
On Tue, 9 May 2006, Hari Krishna Dara wrote:
On Tue, 9 May 2006 at 10:29am, Yegappan Lakshmanan wrote:
Hi Scot,
On 5/9/06, Scot P. Floess <[EMAIL PROTECTED]> wrote:
Is there anyway to move the tabs in a tabbed window around using the
mouse? I see the menu options for a tab when I right cli
On Tue, 9 May 2006, Robin Becker wrote:
I am trying out Vim 7.0 and see a major difference in the way my old mappings
work. I have for many years mapped g to G so I can use the lower case g to
jump around the file instead of shift+g.
Under 6.4 and earlier that works well, but with vim 7 I see
On Tue, 9 May 2006, Peter Slizik wrote:
or change these lines
if a:mode[1] == "T"
...
elseif a:mode[1] == "t"
to
if a:mode[1] ==# "T"
...
elseif a:mode[1] ==# "t"
Well, yes, after this correction, the script has became my good friend ;-)
What I like most is it's ability t
On Tue, 9 May 2006, Michael Fross wrote:
Hello everyone,
Does VIM (v7) have a way to tell me the screen width from an OS point of view?
I like to position gvim in a specific place on my screen and I use computers
with different resolutions. Right now I shell out via a system call and get
the i
I'm forwarding this to the list so that everyone can help :)
-- Forwarded message --
Date: Tue, 9 May 2006 19:36:45 +0200
From: Benjamin Reitzammer <[EMAIL PROTECTED]>
To: Gerald Lai <[EMAIL PROTECTED]>
Subject: Re: fast file opening / find file as you typ
On Tue, 9 May 2006, Benjamin Reitzammer wrote:
[snip]
Regarding :find. It does not do &path-full completion, and
no 'incremental completion menu'. To write such plugin, you'd
need to process every typed character.
Yes I tried, :find and that it's not doing completion of my filename,
is somethi
On Tue, 9 May 2006, Arm?nio Pinto wrote:
> -Original Message-
> From: J?rgen Kr?mer [mailto:[EMAIL PROTECTED]
> Sent: ter?a-feira, 9 de Maio de 2006 16:04
> To: vim mailing list
> Subject: Re: Indentation and blank lines
>
>
>
> Hi
>
> Arm?nio Pinto wrote:
>>
>> I'm using Vim to edi
On Mon, 8 May 2006, Mark Volkmann wrote:
On 5/8/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
Mark Volkmann wrote:
> When I start Vim 7 under Windows XP, I always get a popup message
> dialog that says "Auto-Commands". Is there a way to prevent this?
Check your startup scripts for a lonely "
On Sun, 7 May 2006, Suresh Govindachar wrote:
Hello,
After the following command,
:let i=0 | %g/^/let i+=1
the display changes to show the very last line.
How can I prevent the display from changing?
There are many other functions written to do this:
http://www.vim.org/tips/tip
On Sun, 7 May 2006, Meino Christian Cramer wrote:
Hi,
[snip]
OK, if you're just starting out, before writing scripts, you would need
to jump through a few hoops first. Please pardon me if you are already
familiar with what I'm about to write. I'm just taking it from the top.
First, get famili
On Sun, 7 May 2006, Peter Slizik wrote:
Use "\t" for a normal tag wrap. Use "\T" for a markup tag wrap of the
form ...
Dear Gerald,
seems that \t and \T do the same thing.
After a quick look at the source, I think you intended to support /* */ and
HTML tags differently. For me, both mappin
On Fri, 5 May 2006, Vim Visual wrote:
Again thanks a lot... it's working fine, but today I found out that
some blocks are repeated!!
The blocks have to be EXACTLY the same. It seems that your last block
has one less "^$". You may be off by one line.
This script is meant to filter the informa
On Fri, 5 May 2006, Max Dyckhoff wrote:
-Original Message-
From: Yakov Lerner [mailto:[EMAIL PROTECTED]
Sent: Friday, May 05, 2006 11:45 AM
To: Max Dyckhoff
Cc: vim@vim.org
Subject: Re: Commenting out a block of text
On 5/5/06, Max Dyckhoff <[EMAIL PROTECTED]> wrote:
F4 I want to do a
On Thu, 4 May 2006, Neil Bird wrote:
Around about 04/05/06 10:07, Yakov Lerner typed ...
Do you mean function a-la :ilist that returns list of matches instead of
printing them on the screen ?
Actually, I finally sussed how ballooneval works and I thought that it
might be cool to show the '[
On Thu, 4 May 2006, Tim Chase wrote:
Which command should I add in the script to tell vi to embed it in the
correct place?
At the moment I do it by telling vi something like "go to line XXX,
delete everything, insert text":
:386,$d
o
:r /tmp/arXiV_2.txt
:w! ~pau/WWW/arXiV.html
But the inconv
On Thu, 4 May 2006, Jack Donohue wrote:
:v (and :g) made my day..!
Yes, I use this a lot if I just want to filter out a set of lines, or see
only lines containing some text (like the old XEDIT command). But what I'd
really like to to is continue editing in this view and not lose all the
hi
On Thu, 4 May 2006, Eric Arnold wrote:
On 5/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
I want to trap changes in the value of 'modified' (execute
my commands when first change is done to the
buffer, and when undo reverts buffer to unmodified state).
How can I achieve this ?
Note that this
On Wed, 3 May 2006, Gerald Lai wrote:
On Wed, 3 May 2006, Vim Visual wrote:
Hi,
this is the continuation of a post... The point is that I have a file
where blocks of text appear sometimes once, sometimes twice or even
three times etc...
I would like to find out how to delete the blocks that
On Wed, 3 May 2006, Vim Visual wrote:
Hi,
this is the continuation of a post... The point is that I have a file
where blocks of text appear sometimes once, sometimes twice or even
three times etc...
I would like to find out how to delete the blocks that are repeated,
so that in the end I am lef
On Wed, 3 May 2006, Max Dyckhoff wrote:
I've Googled and Yahooed my way around the web trying to find the answer
to this to no avail, so I thought I would query this potential gold mine
of information.
I would really love a way to be able to select a line, or a range of
lines, press a button an
On Tue, 2 May 2006, o1792 wrote:
[snip]
if you want to find anything that is not any word
ending in "ion",
well the regex group you're looking at is
\(\<.\+ion\>\), but how do you
negate that? Put it all in square brackets and provide
a caret ^ at the
beginning? Nope. in fact group within square
On Mon, 1 May 2006, cga2000 wrote:
I have saved the following in a file:
I can't give you any Mac-specific advice, since I don't use them, but
I can give you a general run-down.
1. You need to have the right locale settings. Your locale should be
set to something similar to this:
$ local
On Sun, 30 Apr 2006, Anton wrote:
On Sun, Apr 30, 2006 at 14:33 +0300, Yakov Lerner wrote:
For me, In virtual terminal on Linux, Ctrl-F1 sends same
sequence as F1. Accordingly, vim responds to Ctrl-F1 as
if I pressed F1.
Yakov
I think the problem is really caused by this. But the binding
:m
On Mon, 1 May 2006, James Vega wrote:
On Mon, May 01, 2006 at 06:45:24PM +0530, jagpreet wrote:
[snip]
Furthermore if I close(:q), either of the files and switch to another file
by selecting it from the buffer window it opens the files in black and
white("vi ") mode, like syntax off commend is
On Mon, 1 May 2006, oystercatcher wrote:
Greetings,
Sorry if this is an obvious one but I searched using a variety of
arguments and nothing was too clear. I also looked at _gvimrc
and changed the line
highlight Normal guibg=white # from gray80
which made it much easier to see the select
On Mon, 1 May 2006, Michael Naumann wrote:
On Monday 01 May 2006 07:04, Gerald Lai wrote:
On Mon, 1 May 2006, Michael Naumann wrote:
Is there a way to highlight a sequence of non-tabs followed by a sequence
of tabs (/^[^\t]\+\t\+/) differently from the next such sequence?
For example in the
On Mon, 1 May 2006, Michael Naumann wrote:
Is there a way to highlight a sequence of non-tabs followed by a sequence
of tabs (/^[^\t]\+\t\+/) differently from the next such sequence?
For example in the line
a\tb\t\tc\td
I want
"a\t" to be color1,
"b\t\t" to be color2 and
"c\t" to be col
On Sun, 30 Apr 2006, Yakov Lerner wrote:
On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
On Sun, 30 Apr 2006, Yakov Lerner wrote:
> On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
>> On Sun, 30 Apr 2006, Yakov Lerner wrote:
>>
>> > On 4/30/06, Bram
On Sun, 30 Apr 2006, Russell Bateman wrote:
Gerald Lai wrote:
On Sat, 29 Apr 2006, Tomasz Kalkosi???ski wrote:
Hello
This is a good idea! I have a couple of suggestions:
(1) HiLink txtString Normal
The highlight for alphabetic text may be too strong if linked to
Identifier.
Yes, it is
On Sun, 30 Apr 2006, Yakov Lerner wrote:
On 4/30/06, Eddy Zhao <[EMAIL PROTECTED]> wrote:
Very often, when I
- snip some notes from web
- paste them into an empty buffer
- yank the key sentence as filename
- then try to :write
Vim report "E77: Too many file names". How can the spaces
in
On Sun, 30 Apr 2006, Yakov Lerner wrote:
On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
On Sun, 30 Apr 2006, Yakov Lerner wrote:
> On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>> > :help 'compatible'
>> >
>> >
On Sun, 30 Apr 2006, Yakov Lerner wrote:
On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> :help 'compatible'
>
> where (among other things) you can find the warning
>
> This is a special kind of option, because when it's set or reset,
> other options are also changed as a sid
On Sat, 29 Apr 2006, Tomasz Kalkosi?ski wrote:
Hello
This is a good idea! I have a couple of suggestions:
(1) HiLink txtString Normal
The highlight for alphabetic text may be too strong if linked to
Identifier.
Yes, it is linked to Identifier. The point is that Normal text is usually
On Sat, 29 Apr 2006, Vim Visual wrote:
[snip]
I solved it like this:
:1,/received/d
:$?^\s*For subscribe options?,$d
:let @a=''
:g/hole\|relativistic\|LISA\|black\|supermassive\|intermediate/?^\s*astro-ph?,/^\s*astro-ph/-y
A
:%d
:put a
:1d
:%s!^\s*astro-ph/\(\d\+\)!http://xxx.lanl.gov/pdf/astro
On Fri, 28 Apr 2006, Eric Arnold wrote:
On 4/28/06, Eric Arnold <[EMAIL PROTECTED]> wrote:
The end of the visual selection as gotten by`> seems to depend
on whether the cursor was between the end_col - 1, and end_col, or
between end_col, and end_col + 1. The GUI gvim seems to have the
On Fri, 28 Apr 2006, Tomasz Kalkosi?ski wrote:
Hello
Many times I open some strange file (some log, readme, txt, licence and many
others) - they all have different syntax. While I don't want coloring to be
100% accurate I can have numbers, delimiters, cites, signs and other colored.
I spent
On Fri, 28 Apr 2006, Justin Randall wrote:
Hi,
I would like to know if there is an easy way to fix the placement of { }
brackets in vim
so that they fall two or three spaces intented. For example in a C++ file I'm
currently
working on, I have:
if (pExample != NULL)
{
// code here
}
What
On Fri, 28 Apr 2006, Suresh Govindachar wrote:
> Gerald Lai sent on Thu, 27 Apr 2006 17:44:05 -0700 (PDT):
>> On Thu, 27 Apr 2006, Suresh Govindachar wrote:
[snip]
> What do you intend to do with the mapping?
The line would have several '|' characters in it; I w
On Thu, 27 Apr 2006, Suresh Govindachar wrote:
Hello,
Why does the following _single_ line map
generate the E10 error?:
nmap :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g')
How would it be fixed?
What do you intend to do with the mapping?
First, replace all "|" with
On Thu, 27 Apr 2006, Suresh Govindachar wrote:
Hello,
What's the best way to get the contents
of a file into a register? I tried the
following (file is foo.bat), but it
doesn't get rid of the new buffer:
:new|r foo.bat|1d|normal "ayG|q!
So why does the q! get lost, and is there
a
On Thu, 27 Apr 2006, Eric Crahen wrote:
On 4/27/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
On 4/27/06, Eric Crahen <[EMAIL PROTECTED]> wrote:
On 4/27/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
On Thu, 27 Apr 2006, Eric Crahen wrote:
I've tried all variation of BufEnte
On 4/27/06, Eric Crahen <[EMAIL PROTECTED]> wrote:
On 4/27/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
> On Thu, 27 Apr 2006, Eric Crahen wrote:
>
> > I've tried all variation of BufEnter and autchdir commands to get the
> > cwd switched to that of the file t
On Thu, 27 Apr 2006, Eric Crahen wrote:
I've tried all variation of BufEnter and autchdir commands to get the
cwd switched to that of the file that is open. None of them ever work
when I specify a file on the command line. The buffer for the file I
specify is open, but the cwd is right where I s
On Thu, 27 Apr 2006, Bram Moolenaar wrote:
Gerald Lai wrote:
Nah. Good riddance :) It will actually fix a bug in one of my scripts.
Bram, could you make Vim do
-- (insert) VISUAL --
instead when it now does
-- INSERT VISUAL --
With the weird mode prevented, this should never
On Thu, 27 Apr 2006, Robert Cussons wrote:
Hi All,
Matt kindly suggested this mapping for the above
inoremap
nnoremap
vnoremap gV
inoremap `^
but how would I add a mapping to make tab work as escape in the command line,
also is there any loss of functionality making this mapping, I d
On Thu, 27 Apr 2006, Bram Moolenaar wrote:
Gerald Lai wrote:
On Wed, 26 Apr 2006, Benji Fisher wrote:
On Wed, Apr 26, 2006 at 05:17:01PM +0200, Bram Moolenaar wrote:
Benji Fisher wrote:
This mode seems to be similar to Insert mode, but takes me to
Visual mode instead of Normal mode
On Wed, 26 Apr 2006, Halim, Salman wrote:
I use the extreme version:
vnoremap * "yy:let @/='\(' . substitute( escape( @y,
'$*^[]~\/.' ), '\_s\+', '\\_s\\+', 'g' ) . '\)':set hls
This escapes a lot of stuff, including replacing any whitespace with a
generic expression that includes newlines.
On Wed, 26 Apr 2006, Halim, Salman wrote:
I use the extreme version:
vnoremap * "yy:let @/='\(' . substitute( escape( @y,
'$*^[]~\/.' ), '\_s\+', '\\_s\\+', 'g' ) . '\)':set hls
This escapes a lot of stuff, including replacing any whitespace with a
generic expression that includes newlines.
On Wed, 26 Apr 2006, Benji Fisher wrote:
On Wed, Apr 26, 2006 at 05:17:01PM +0200, Bram Moolenaar wrote:
Benji Fisher wrote:
This mode seems to be similar to Insert mode, but takes me to
Visual mode instead of Normal mode. AFAICT this is undocumented.
This is a really weird mode, being b
On Wed, 26 Apr 2006, Hari Krishna Dara wrote:
In Vim 6.3, hitting ^X in insert mode when the cursor is on the number:
08)
produced:
03778)
This is a bug which seems to be fixed in Vim 7.0f, but it doesn't work
right, as it now produces:
7)
instead of:
07)
If the string is say,
On Tue, 25 Apr 2006, Benji Fisher wrote:
On Sat, Apr 22, 2006 at 11:11:33AM -0700, Gerald Lai wrote:
From Normal mode, typing "i" will elicit
-- INSERT --
Then typing "v" will elicit
-- (insert) VISUAL --
My question is, what keystroke will elicit
-- INSERT VISU
On Wed, 26 Apr 2006, SHANKAR R-R66203 wrote:
I am using tags to browse the code.
For the first time, when I press CTRL-] to enter a module, everything works
properly.
But when I press the CTRL-] second time onwards, I get this annoying Error
message.
--
On Tue, 25 Apr 2006, Salman Khilji wrote:
[snip]
What I am looking for is that when I hit the 'n' key,
VIM should move the cursor to the next match AND
highlight it as well using, for example, the 'Search',
or 'IncSearch', or the 'Todo' highlight group. As
soon as I hit the 'n' key again, the p
On Tue, 25 Apr 2006, Suresh Govindachar wrote:
Hello,
By default, * searches for words: /\
but I would like it to search for strings: /stuff_below_cursor
One way is to use the following
map * yiw:let @/[EMAIL PROTECTED]
Is there a better way? ("/yiw didn't work.)
I found this
On Tue, 25 Apr 2006, Halim, Salman wrote:
Hmm.. My imap is definitely invoked (it does the save just fine; it
just moves the cursor). I don't have any InsertEnter or InsertLeave
autocommands, either (Vim 7f).
[snip]
For me (Vim 7.0c), the Insert cursor appears to be out of place by one
chara
From Normal mode, typing "i" will elicit
-- INSERT --
Then typing "v" will elicit
-- (insert) VISUAL --
My question is, what keystroke will elicit
-- INSERT VISUAL --
?
--
Gerald
On Fri, 21 Apr 2006, Suresh Govindachar wrote:
Hello,
Is this a bug, or is it something that cannot be fixed?
1) gvim.exe -u NONE -U NONE --noplugin
2) :set smartindent tw=40 fo=tcq
3) Type text -- at least, say, 60 characters.
Vim will insert linebreaks.
4) Join the pieces to have a
Vim loads up test.txt fine for me. Have you tried:
$ vim -u NONE test.txt
just to make sure no configuration files are getting in the way.
Like you, I'm also on
Red Hat Enterprise Linux WS release 4 (Nahant Update 3)
using
Vim 6.3
--
Gerald
On Fri, 21 Apr 2006, Marc Wiatrowski wrote:
On Fri, 21 Apr 2006, Dominic Evans wrote:
[snip]
the following commands replace leading spaces by tabs according to the
current value of the 'tabstop' option
:%s/^ \+/\=substitute(submatch(0), repeat(' ', &tabstop), "\t", 'g')
:%s/^ \+/\=substitute(submatch(0), ' \{' . &tabstop . '\}', "\t",
On Fri, 21 Apr 2006, zzapper wrote:
Gary Johnson <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
On 2006-04-20, zzapper <[EMAIL PROTECTED]> wrote:
Is it possible to make tabs default behaviour?
ie gf or :e somefile would automatically open a new tab?
:help CTRL-W_gf
:help :tab
On Fri, 21 Apr 2006, Dominic Evans wrote:
I like to have leading spaces as tabs, but all spaces after any
non-whitespace character has occurred to be regular spaces.
Unfortunately :retab! performs the spaces->tab substitution throughout the file.
In the past I have got around this by using the
On Fri, 21 Apr 2006, Neil Bird wrote:
Around about 21/04/06 10:12, James Oliver typed ...
I have the following code from vimrc_example.vim in my .vimrc:
Ah, that's it thanks. Problem solved: it's in Fedora's /etc/vimrc which my
local vim7 install isn't picking up. Cheers!
Also see ":hel
On Thu, 20 Apr 2006, Mark Sargent wrote:
Hi All,
I'm trying to get vi to display an ab like so(minus the \),
ab htm
\
\
\
\NewUser
\
\
\
\
[snip]
Mark,
Here's an alternate suggestion:
You may want to take a look at ":help template". It may be better to
have a file with the HTML header/ske
On Tue, 18 Apr 2006, Sorav Bansal wrote:
In my environment, I am unable to delete existing text using
key in insert mode. The key works fine on
newly added text.
Why is this happening and how can I correct this?
See ":help 'backspace'". Also, please take a look at the Vim FAQ:
http://www.v
On Sun, 16 Apr 2006, Mikolaj Machowski wrote:
Dnia niedziela, 16 kwietnia 2006 14:46, Georg Dahn napisa?:
That's it, thanks. 'showbreak'.
Is there a possibility that wrapping respects indentation? That is, that
the wrapped text starts exactly at the actual indentation? I have not
found an opt
On Wed, 12 Apr 2006, Gerald Lai wrote:
On Wed, 12 Apr 2006, Steve Hyatt wrote:
Hi All.
I would like to map a key such that it 'executes' the current file. Is
this a no brainer?
For example, I have the following in my .vimrc file:
"map :!php tester.php
"map :!./tes
On Wed, 12 Apr 2006, Steve Hyatt wrote:
Hi All.
I would like to map a key such that it 'executes' the current file. Is this
a no brainer?
For example, I have the following in my .vimrc file:
"map :!php tester.php
"map :!./tester.py
map :!tester
I have to change the mapping based on wha
On Mon, 10 Apr 2006, Russell Bateman wrote:
I'm guessing I'm not answering the real question, Yakov, for I recognize you
as one of the frequent responders to this list and therefore someone who
knows better than I. Nevertheless, I promised and answer here and someone
else may be waiting on it
On Thu, 6 Apr 2006, Sorav Bansal wrote:
Is it possible to display the name of the C function in which the
cursor is currently placed? It would be great if I could get type
(or any other key combo) to display the function name (along
with filename and line number).
Sorav
Have a look at:
h
Could someone update the binary below dated 3/27/2006, please? :) The
recent :substitution bug seemed serious enough to warrant an update.
ftp://ftp.vim.org/pub/vim/unstable/pc/gvim70c.exe
--
Gerald
101 - 171 of 171 matches
Mail list logo