Friday, February 26, 2010

Re: Unexpected behaviour of File browser in multi-windows environment

Hi Chip,

Sorry for my lack of precision.
The official name of the "black bar below the file" in the help is the
"status line".
Let us take the windows vim7.2 distribution with the default _vimrc.

Please type:
gvim file1 (long enough file to full the window)
:sp . (long enough directory to full the half window created)

The File browser is opened in the upper half window with the cursor
positioned on ../

Click on the status line below the screen where file1 is written in
reverse video.
Result: 1/ the cursor is positioned at its location before :sp . (OK)
2/.. is activated in the upper windows (surprising in my
opinion)

Quit and redo exactly the same except that instead of clicking on the
status line of file1, you now click somewhere inside file1.
Result: The cursor is positioned at the place you have clicked and ..
is not activated in the upper window (OK)

I hope you will reproduce the same behaviour.

Anyway, it is a minor flaw. But vim is so reliable...

Best regards

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Re: Naive question: scrolling down keeping only 1 line

Jean Johner wrote:
> Scrolling down with <Page-down> or CTRL-F keeps 2 lines from
> the previous sceen at the top of the new screen.
>
> z+ does the same keeping 0 line.
>
> Is it possible to keep 1 line (as some other editors do by
> default).

What is your 'scrolloff' setting?

:set scrolloff?

It appears to be non-zero, based on your description. I don't
know if you have manually set it in your vimrc or a plugin has
set it for you:

:verbose set scrolloff?

should tell you where it was last set. You should be able to
tweak this setting to get the behavior you're looking for.

:help 'scrolloff'

hope this helps,

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Naive question: scrolling down keeping only 1 line

Hello,

Scrolling down with <Page-down> or CTRL-F keeps 2 lines from the
previous sceen at the top of the new screen.

z+ does the same keeping 0 line.

Is it possible to keep 1 line (as some other editors do by default).

Best regards.

Jean Johner

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Re: Unexpected behaviour of File browser in multi-windows environment

Jean Johner wrote:
> Hello,
>
> Please do the following:
> vim (or gvim) file1
> :sp . (opens File browser in a second window)
>
> Click on the black bar below file1 (this should have the effect of
> activating the cursor in file1 to its original location)
>
> It does do that but additionaly, it opens the file below the cursor in
> the File browser (which is not necessarily desired).
>
> This does not occur if you click inside file1 instead of clicking on
> the black bar below file1.
>
I'm guessing about that "black bar below file1" -- I have no black bars,
and the highlighting rather strongly depends on what colorscheme you've
selected -- my guess is you're talking about the vertical spacing
between characters. That space is "owned" by some character cell, and
is not differentiable from the character. Alternative guess: you're
referring to the separator between windows. A click on the window
separator does have the effect you mention so long as the window isn't
full (pick a directory with enough files to fill the display and try
this); however, there's nothing that I can see that vim returns to let
me differentiate between a click on the window separator vs a click on
the file below the cursor.

You can, by the way, turn netrw mouse handling off (see :help
g:netrw_mousemaps).

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Re: How to change font on the fly?

> This was the thread I had started:
> http://groups.google.com/group/vim_use/browse_thread/thread/ef7bc332e9599bf0/29053fefdd545991?lnk=gst&q=font+firefox+dfishburn#29053fefdd545991
>
>
> This was the tip I created:
> http://vim.wikia.com/wiki/Increase/decrease_fontsize_using_a_map_ala_firefox
>
>
> Looks like someone cleaned up the tips and merged them.
>
> Anyway, there you have it.
>

Thanks!

--
Dotan Cohen

http://bido.com
http://what-is-what.com

Please CC me if you want to be sure that I read your message. I do not
read all list mail.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

close file but not the tab

1)
I would like to know if it is possible to close the last tab but keep
the empty tab without closing vim.


2)
I would also like to know if it is possible to reopen the last files
(the last tabs) when I reopen vim.

Tnx.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Re: Saving signs

On Fri, Feb 26, 2010 at 6:16 AM, Christian Brabandt <cblists@256bit.org> wrote:
> BTW: I noticed some unexpected behaviour when writing savesigns.vba.
> Is this behaviour a feature or a bug?
> :redir => a | sil sign list | redir end
> (this errors "E155: Unknown sign: |")
> so one has to wrap this command into
> :redir => a | exe 'sil sign list' | redir end

Don't know if its a bug, but it is documented.

From ":help :sign"
[quote]
Note that the ":sign" command cannot be followed by another command or a
comment. If you do need that, use the |:execute| command.
[/quote]

[]'s,
Vitor

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php