Dr. Johannes Zellner schrieb:
Hi,
having marked a visual block with ctrl-v, I'd like to so a search /
replace only in that visual block. E.g. when selecting the right block
in:
xx xx
xx xx
xx xx
xx xx
I'd to do something like s/xx/yy/g which applies only to the selected
block. How can I do thi
Hi,
having marked a visual block with ctrl-v, I'd like to so a search /
replace only in that visual block. E.g. when selecting the right block
in:
xx xx
xx xx
xx xx
xx xx
I'd to do something like s/xx/yy/g which applies only to the selected
block. How can I do this?
--
Johannes
On 8/2/06, Tim Chase <[EMAIL PROTECTED]> wrote:
> How to put cursor in the middle of screen when replacing words? I have
> to see the next few lines to know replace or not, but the word always
> sit in the bottom of the screen.
Sounds like you're looking for the 'scrolloff' setting.
:he
Hi Peter
Thank you very much for your time/help. The previous group of commands
works really well for me already. I have enjoyed the convenience it's
brought so far. A click to update the content was what I wished for, but
now I have more than what I wished for!
Many many thanks again
Regard
>
> Thank you very much for the tip. ":e" works so nicely. I will try out those
> commands soon. Should I insert them in my vimrc file ?
>
Hi Tien,
Sorry, it seems I was a little naive with that autocommand I showed you, it
doesn't work because CursorHold won't trigger again until you press a ke
Hi Peter
The refresh command works well. I put my log file name such as "autocmd
CursorHold regression.log edit". Even I have a few files open at the same
time, whenever I re-run my regression, I only need to click my
regression.log window and new info is updated. Fantastic!
Many thanks
tie
Hi Peter
Thank you very much for the tip. ":e" works so nicely. I will try out those
commands soon. Should I insert them in my vimrc file ?
Again, many thanks
tien
At 12:59 PM 2/08/2006 +1000, Peter Hodge wrote:
Hi Tien,
You can use ':e[dit]' to reload the current file. Perhaps you could s
Hi Tien,
You can use ':e[dit]' to reload the current file. Perhaps you could set up
something with an autocommand based on the CursorHold event and reduce the
updatetime to half a second? For example:
set updatetime=500
augroup RefreshFile
autocmd!
autocmd CursorHold somefile.log edit
On Mon, Jul 31, 2006 at 11:47:33AM +1000, Brett Calcott wrote:
> Hi,
>
> I want to add some extra syntax highlighting to my latex documents. I
> am writing a thesis, so I have separate files for each chapter.
>
> For example, I add this in ~/vimfiles/extra/syntax/tex.vim
>
> syn region texFootno
How to put cursor in the middle of screen when replacing words? I have
to see the next few lines to know replace or not, but the word always
sit in the bottom of the screen.
Sounds like you're looking for the 'scrolloff' setting.
:help 'scrolloff'
will provide details on this. It allo
Hi all
Is there any key stroke to update content of a currently open file when its
content has been changed?
Reason for this is that I want to look at my log file from a simulation, as
I run simulation so frequently, it is so tedious to click "open" and
"select" the same file name to see the
Hi,
When I maximize Gvim in Gnome, the status line is partially hidden by
the gnome panel, which is really annoying. This is because of how Vim
resizes itself, i.e. it is constrained to being resized one character
size at a time. When Gvim is maximized, it is half a character too
high, so that ex
Hi,
How to put cursor in the middle of screen when replacing words? I have
to see the next few lines to know replace or not, but the word always
sit in the bottom of the screen.
Thanks.
--
Best Regards
Carlos
On Sun, Jul 30, 2006 at 06:49:26PM -0400, Siegmuund Siegmuundsson wrote:
> Hello all.
>
> I'm trying to remap some keys from my vimrc file but am having problems.
> What I want to do is the following: have vim print the character '\'
> when I press 'Ctl-e'.
> In my vimrc file I inserted:
>
> imap
David Fishburn wrote:
I don't like modifying files in the $VIM directory.
I tried this and it still did not fix the problem on my machine (I still
cannot browse the files in my directory).
I also get this:
:pwd
C:\
:e .
"C:\" Illegal file name
Please remove all the older versions of netrw
On 7/31/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Bob Hiestand wrote:
> Question one:
>
> Is there a way to achieve execution of system commands without using
> the shell? Here I'm thinking (for example) of, in perl, the
> difference between using a single argument to exec() and using
> mul
> On Tue 1-Aug-06 1:52am -0600, Hugo Ahlenius wrote:
>
> > I just upgraded netrw to netrw 103b from Charles Campbell's
> web-site.
> > Now it seems like opening a directory by just trying to edit it
> > doesn't work, like it used to:
> > :e c:\
I am having a similar issue, but I am usi
Hugo Ahlenius wrote:
Hi,
I just upgraded netrw to netrw 103b from Charles Campbell's web-site. Now it
seems like opening a directory by just trying to edit it doesn't work, like
it used to:
:e c:\
Could there be an autocommand that is missing? The only message I get is
"Illegal file na
Robert Cussons wrote:
[EMAIL PROTECTED] wrote:
Robert Cussons <[EMAIL PROTECTED]> wrote on 2006.07.21 19:19:56:
because this is the size I want my gvim window to be when it opens,
however as gvimdiff opens at least two buffers I would like it to open
full screen, is there a way of getting this
| Do you still have the distribution copy of netrw v98 installed to
| $vimruntime?
Yes I had -- your change did it!
Thanks,
Hugo
[EMAIL PROTECTED] wrote:
Hello,
I don't understand the meaning of <(Local)Leader>.
When I set filetype to "mail" (ftplugin mail.vim), how can I execute
the mapping to "Quote text by inserting "> " ?
Thank You
Joachim
[advertisement snipped]
see
:help
:help
HTH,
Tony.
On Tue 1-Aug-06 1:52am -0600, Hugo Ahlenius wrote:
> I just upgraded netrw to netrw 103b from Charles Campbell's web-site. Now it
> seems like opening a directory by just trying to edit it doesn't work, like
> it used to:
> :e c:\
>
> Could there be an autocommand that is missing? The only
[EMAIL PROTECTED] wrote:
Robert Cussons <[EMAIL PROTECTED]> wrote on 2006.07.21 19:19:56:
because this is the size I want my gvim window to be when it opens,
however as gvimdiff opens at least two buffers I would like it to open
full screen, is there a way of getting this to happen?
gvim 7 in
I'm trying to remap some keys from my vimrc file but am having problems.
What I want to do is the following: have vim print the character '\'
when I press 'Ctl-e'.
imap \
nmap \
cmap \
These all work for me.
--
.
Yakov Lerner wrote:
On 7/31/06, Robert Cussons <[EMAIL PROTECTED]> wrote:
>
>
> Are those two vims built with same GUI libraries ? I suspect
> that they are build with different GUIs.
> Can you send first 4 lines out :version output from each of two vims ?
>
> Yakov
>
> P.S. I remember that
On 8/1/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
Here's the function that sets buffername without escaping.
Correction. I wanted to write:
Here's the function that sets buffername without any metacharacter expansion.
On 7/31/06, Bob Hiestand <[EMAIL PROTECTED]> wrote:
Question two:
Is there a way to set the buffer name without the name being subject
to shell metacharacter expansion?
Easy. Here's the function that sets buffername without escaping.
function! LiteralSetBufferName(name)
" we need to escape
On 7/31/06, Bob Hiestand <[EMAIL PROTECTED]> wrote:
Question one:
Is there a way to achieve execution of system commands without using
the shell?
Yes, via libcall() ( :help libcall()). You can write your own function in
a shared lib that will do fork()+exec() without intermediate /bin/sh.
How
Hello,
I don't understand the meaning of <(Local)Leader>.
When I set filetype to "mail" (ftplugin mail.vim), how can I execute
the mapping to "Quote text by inserting "> " ?
Thank You
Joachim
###
This message has been scanned by F-Secure Anti-Virus for M
29 matches
Mail list logo