Hello,
* On Thu, Nov 09, 2006 at 03:30:19PM +0800, [EMAIL PROTECTED] <[EMAIL
PROTECTED]> wrote:
> > I'd like to run these commands everytime I edit a MATLAB file. How
> > do I do that?
> >
> > set shiftwidth=4
> > set tabstop=4
> > set expandtab
>
> Save these commands into your $VIM\vimfiles\af
Luc Hermitte <[EMAIL PROTECTED]> 写于 2006-11-09 16:35:45:
> > Save these commands into your $VIM\vimfiles\after\syntax\matlab.vim
> > (Windows platform)
> > or ~/.vim/after/syntax/matlab.vim
>
> This is not the right place to do that. ftplugins are the right
> solution.
> => ~/.vim/ftplugin/matlab.v
[EMAIL PROTECTED] <[EMAIL PROTECTED]> on 2006-11-09 at 03:30 PM writ:
> Save these commands into your $VIM\vimfiles\after\syntax\matlab.vim
> (Windows platform)
> or ~/.vim/after/syntax/matlab.vim
I have wondered how to do this as well... is there an easy way to incorporate
these changes like this
[EMAIL PROTECTED] wrote:
[...]
> I don't know if there's any difference between ftplugin directory and
> syntax directory.
[...]
Syntax scripts are for syntax highlighting: setting various colors in the
display of the file, and defining the keywords, regions, etc., which delimit
those colours. Als
Evan Klitzke wrote:
[EMAIL PROTECTED] <[EMAIL PROTECTED]> on 2006-11-09 at 03:30 PM writ:
Save these commands into your $VIM\vimfiles\after\syntax\matlab.vim
(Windows platform)
or ~/.vim/after/syntax/matlab.vim
I have wondered how to do this as well... is there an easy way to incorporate
these
"A.J.Mechelynck" <[EMAIL PROTECTED]> 写于 2006-11-09 17:17:05:
>
> Filetype plugins are sourced if ":filetype plugin on" has been used.
> Indent plugins are sourced if ":filetype indent on" has been used.
> Syntax scripts are run if both ":filetype on" and ":syntax on" have been
used.
>
>
> Best rega
[EMAIL PROTECTED] wrote:
"A.J.Mechelynck" <[EMAIL PROTECTED]> 写于 2006-11-09 17:17:05:
Filetype plugins are sourced if ":filetype plugin on" has been used.
Indent plugins are sourced if ":filetype indent on" has been used.
Syntax scripts are run if both ":filetype on" and ":syntax on" have been
On Thu, Nov 09, 2006 at 09:49:46AM +0800, [EMAIL PROTECTED] wrote:
>
> By the way, you should also know that "you should never add a space before
> [ ]".
>
> the abc [1] works in Vim6, but in Vim 7 there should not be a space so
> there must be abc[1].
>
> I don't know why there is such a requir
On Wed, Nov 08, 2006 at 11:25:14AM -0500, Jeremy Conlin wrote:
> My current fold method is by expression and this accurately finds the
> functions/classes that I want folded. However, sometimes I want to
> fold a portion of a function manually. Is there anyway to mix folding
> methods so I can ke
So I just discovered the wonders of being able to append to named
registers - how though, do I then clear them out once I'm done with
their contents?
thanks!
-lev
Lev Lvovsky wrote:
So I just discovered the wonders of being able to append to named
registers - how though, do I then clear them out once I'm done with
their contents?
Let's assume you're wishing to clear register A:
:let @a=""
will empty it out.
Regards,
Chip Campbell
So I just discovered the wonders of being able to append to named
registers - how though, do I then clear them out once I'm done with
their contents?
You can just overwrite to their lower-case equiv.
Thus, if you
"ayy
to yank into register "a" and then move somewhere else and
On Nov 9, 2006, at 9:45 AM, Tim Chase wrote:
It's helpful to understand that the uppercase and lowercase
registers are exactly the same place of storage. Uppercase just
instructs Vim to append rather than overwrite any preexisting
contents.
:help :let-register
:help qu
After :s/X/Y/g, all search highlights disappear. I'd ilke
all highlights to switch from X to Y`s.
Is there easy way, after :s/X/Y/g, to highlight all
Y`s (all just repalced places) ?
Yakov
This isn't something I do ever, but it happened accidentally to me just now and
it looked wrong. It looks like it could be related to an earlier issue I had. I
have an :au CursorHold to generate tags (although I may remove this, as I have
better ideas on how to do it).
Repro steps:
1. visual b
After :s/X/Y/g, all search highlights disappear. I'd ilke
all highlights to switch from X to Y`s.
Is there easy way, after :s/X/Y/g, to highlight all
Y`s (all just repalced places) ?
Yup
/~
should do the trick. If you want to map it and use it so that it
doesn't move the cursor from
Forgot to mention:
I'm running gvim 7.0 with patches 1-135 on Windows XP. Apologies if this has
been fixed in a more recent patch.
Max
> -Original Message-
> From: Max Dyckhoff [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 09, 2006 2:18 PM
> To: vim@vim.org
> Cc: [EMAIL PROTECTED
Out of curiousity, I wonder if there is way to output
colored message without putting it into message history ?
:echomsg obeys :echohl but also puts msg into message history.
:echo doesn't obey :echohl.
Yakov
On 11/10/06, Tim Chase <[EMAIL PROTECTED]> wrote:
> After :s/X/Y/g, all search highlights disappear. I'd ilke
> all highlights to switch from X to Y`s.
> Is there easy way, after :s/X/Y/g, to highlight all
> Y`s (all just repalced places) ?
Yup
/~
should do the trick. If you want to m
On 11/10/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
Out of curiousity, I wonder if there is way to output
colored message without putting it into message history ?
:echomsg obeys :echohl but also puts msg into message history.
:echo doesn't obey :echohl.
Ah, the answer is :echon. Sorry for the
On 11/8/06, Bill McCarthy <[EMAIL PROTECTED]> wrote:
On Mon 6-Nov-06 11:02pm -0600, you wrote:
> There is not-a-solution-but-weird-workaround at
> http://www.vim.org/tips/tip.php?tip_id=1379
> Tip #1379: make echo seen when it would otherwise disappear and go unseen
Nice idea. I've ex
Repro steps:
1. visual block select some text ()
2. press "r" to replace text
3. wait 'updatetime'
Actual:
Observe visual mode ending, and selected text being replaced with multiple
instances of ^C
Expected:
Enter some sort of "visual replace" mode.
Not getting this behavior on Vim7 (p1-122
Sorry, I should get in the habit of providing repro steps from a "gvim -u NONE"
environment! I'll try again :)
More explicit repro steps:
1. Start gvim with "gvim -u NONE" (WinXP, Vim 7 p1-135)
2. :au CursorHoldI * echo "hi"
3. :set updatetime=500
4. Enter some text
5. Visual block select some t
All,
I am relatively new to vim and gvim and I am trying to install the
grep plugin. So far, everything appears installed properly (i have
access to Grep, Rgrep, etc ... from within gvim). Also, I am running
WinXP with Cygwin. Reading through the plugin's install notes, i set
the following in
Neil Gabriel wrote:
All,
I am relatively new to vim and gvim and I am trying to install the
grep plugin. So far, everything appears installed properly (i have
access to Grep, Rgrep, etc ... from within gvim). Also, I am running
WinXP with Cygwin. Reading through the plugin's install notes, i
More explicit repro steps:
1. Start gvim with "gvim -u NONE" (WinXP, Vim 7 p1-135)
2. :au CursorHoldI * echo "hi"
3. :set updatetime=500
4. Enter some text
5. Visual block select some text ()
6. Press "r" to replace text
7. Wait 'updatetime'
Ah...The trouble seems to be #2, which in order to pe
Hi,
I want to abbreavte multiple lines into a simple command. Could
someone hlep me how to do it? I searched online and only found the
help to abbrevate a single line.
For example, I need to type this line a lot
{{"abs"},
{ _,_,_,_,},
{ a,b,c,d},
}
Can I abrevate it into a simple command?
Thank
I am new to the list. Could anyone help me to map ctrl+[ to tag pop
command? Vim default is ctrl+t. Also, how can I found which keys have
been used by vim?
Thanks
Frank
Use to indicate the linebreak.
:ab foo {{"abs"},{ _,_,_,_,},{ a,b,c,d},}
Max
> -Original Message-
> From: frank wang [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 09, 2006 4:06 PM
> To: vim@vim.org
> Subject: how to abbrevate multiple lines?
>
> Hi,
> I want to abbreavte multiple
Neil Gabriel wrote:
I did in fact look at that. Reading through the "internal" grep
however, I do not see a way of running a recursive search (i could be
missing it).
Thanks
If you mean recursing into directories, see the ** wildcard. I don't remember
where in the help it's mentioned but tha
Thanks for the info.. I will be sure to use 'Reply to all'. With
regard to top vs. bottom posting, i'll have to dig through my gmail
settings... I image they support either way.
Thanks again
On 11/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Neil Gabriel wrote:
> I did in fact look at that.
On 11/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> Neil Gabriel wrote:
> > I did in fact look at that. Reading through the "internal" grep
> > however, I do not see a way of running a recursive search (i could be
> > missing it).
> >
> > Thanks
>
> If you mean recursing into directories, see
frank wang wrote:
I am new to the list. Could anyone help me to map ctrl+[ to tag pop
command? Vim default is ctrl+t. Also, how can I found which keys have
been used by vim?
Thanks
Frank
Beware! In Vim (or in any program which uses "cooked" keyboard input),
and Ctrl-[ are indistinguishable
Neil Gabriel wrote:
On 11/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> Neil Gabriel wrote:
> > I did in fact look at that. Reading through the "internal" grep
> > however, I do not see a way of running a recursive search (i could be
> > missing it).
> >
> > Thanks
>
> If you mean recursing
Hi,
On 11/9/06, Neil Gabriel <[EMAIL PROTECTED]> wrote:
All,
I am relatively new to vim and gvim and I am trying to install the
grep plugin. So far, everything appears installed properly (i have
access to Grep, Rgrep, etc ... from within gvim). Also, I am running
WinXP with Cygwin. Reading t
* Tim Chase [2006.11.09 17:30]:
> :map :let @/='~'
Using :match also works, and doesn't modify @/.
:match Search '~'
Note that this gives a warning if no previous
replacement string exists.
--
JR
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
> Neil Gabriel wrote:
> >> On 11/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> >> > Neil Gabriel wrote:
> >> > > I did in fact look at that. Reading through the "internal" grep
> >> > > however, I do not see a way of running a recursive search
- Original Message -
From: "Neil Gabriel" <[EMAIL PROTECTED]>
To:
Sent: Thursday, November 09, 2006 5:44 PM
Subject: grep.vim support
All,
I am relatively new to vim and gvim and I am trying to install the
grep plugin. So far, everything appears installed properly (i have
access t
Peter Hodge wrote:
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
Neil Gabriel wrote:
On 11/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Neil Gabriel wrote:
I did in fact look at that. Reading through the "internal" grep
however, I do not see a way of running a recursive search (i could
39 matches
Mail list logo