Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- From: Ohmster <nowayin@xxxxxxxx>
- Date: Mon, 27 Aug 2007 07:59:23 +0200 (CEST)
Troy Piggins <usenet-0708@xxxxxxxxx> wrote in
news:20070827132432@xxxxxxxxxxxxxxxx:
* Ohmster is quoted & my replies are inline below :
Troy Piggins <usenet-0708@xxxxxxxxx> wrote in
news:20070827085153@xxxxxxxxxxxxxxxx:
Very helpful Troy, Saved and thank you.
What is? You've snipped my whole post without attributing it.
You should be leaving relevant quoted messages to make it easier
for others to follow in case they haven't read the earlier posts.
I always think about what messages would look like in the GG
archives. If you want to trim the length of quoted text,
cut it out but attribute it with something like "[snip]". You've
probably seen other posts with that in them.
Wow I did, didn't I. I like never do that, what interupted me like that?
Oh yeah, "The Ex" called and drew me away from what I was doing. I kind
of rushed through it, should have just put it aside in that case.
Don't worry, I know what you were referring to, and no worries.
Glad it helped.
Good. Some people get so darned mad about the tiniest of little tiny ***
it just boggles the mind.
Hey, do you have any kind of "make vim or gvim go fullscreen" stuff
that works? I just tried this plugin by loading it into my plugins
directory, URL is here:
http://www.vim.org/scripts/script.php?script_id=1669
Nope. Sorry. In the extremely rare case I want a larger window,
I just hit the "maximise" button on the title bar.
Let me try that then now and see how it goes. Oh that actually works
quite good. It preserves the formatting and gives more real estate.
And then put the hook for it in _vimrc or _gvimrc. This is the hook:
nnoremap <C-Enter> :WinFullScreen<CR>
I would imagine you'd be wanting it in _gvimrc. FTR where have
you put it?
Well, the instructions say to put it in _vimrc. Like this:
Use command :WinFullScreen to maximize current window
Use command :WinFullScreen again (or move to another window or tab) to
restore windows sizes
Map :WinFullScreen for any key you like
Add to your .[_]vimrc file <---------------- Says
where to put it right here.
nnoremap <C-Enter> :WinFullScreen<CR>
and enjoy vim's windows
In my case that would be:
I:\Documents and Settings\Ohmster\_gvimrc
The idea of full screen is to make it the same as it would be in Linux at
run level 3, I would think, so I would imagine you would want it in
_vimrc. Use your XP Powertoy add on where you can get "Open command
window here" when you right click on the folder of your choice. To edit
_vimrc I would right click on ohmster and then open the command window,
then use "vim _vimrc" to edit the file.
It came from these instructions:
Use command :WinFullScreen to maximize current window
Use command :WinFullScreen again (or move to another window or tab)
to restore windows sizes
Map :WinFullScreen for any key you like
Add to your .[_]vimrc file
nnoremap <C-Enter> :WinFullScreen<CR>
and enjoy vim's windows
I don't really understand what the hell they are talking about. I
should do what now to go fullscreem? Press upper case C? That did not
do anything.
That's [ctrl]-[enter], not "C". And the "nnoremap" means you
must be in normal mode for it to work. What mode were you in
when you tried it?
Okay I just added it again to _vimrc, then closed vim, then opened "vim
_vimrc" again, hit Esc so that I would not be in any kind of editing
mode, and hit control-enter. No, it really does not do anything at all.
Next I tried it at the vim command window like this:
:WinFullScreen
It did not do squat. Not even doing it that way worked.
I did it again, nothing.
Did it give you an error message? Nothing? Where did you save
the script? Can you start typing the command at the commandline
and try to autocomplete it?
The script was saved to the vim plugins folder, that would be here on my
system:
I:\Program Files\Vim\vim71\plugin\win_full_screen.vim
If I read the page right, that is where it is supposed to go, no?
http://www.vim.org/scripts/script.php?script_id=1669
The only other plugin folder I see in vim71 is the ftplugin folder. There
is also a macro folder and a few others as well. Oh wait a minute.
There is also a _vimrc file here too:
I:\Program Files\Vim\_vimrc
Wow, that is a really weird looking vimrc file. Only 29 lines and none of
it anything like the Linux vim stuff. Let me show you what's in it...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
let cmd = '""' . $VIMRUNTIME . '\diff"'
let eq = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
.. eq
endfunction
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
And another plugin folder here:
I:\Program Files\Vim\vimfiles\plugin
But that one is empty. The other one in vim71 is not empty and seems to
have a lot of cool plugins like one that will browse directories, even
network directories, and a zip file plugin too. I have no clue how to
invoke or use them but it is neat to know that stuff is there if I ever
figure it out. :)
No, no error message. As a matter of fact, it still says down at the
bottom of vim:
:WinFullScreen
That never went away, it just stays there. Hitting Esc does not make it
go away. Hitting Esc-colon does make it go away though. Autocomplete? You
mean hit Esc, then colon, then Win and hit the tab key? I can try that.
Yeah, that does work. Actually hitting enter on that does not change the
window but it does make some numbers at the bottom of vim. Here is the
entire bottom line after hitting enter on WinFullScreen:
:WinFullScreen 91,37
Bot
Oh that is just telling me that my cursor is at line 91, position 37
over.
Well, the _vimrc in I:\Documents and Settings\Ohmster is really just a
copy of my Linux vimrc that I copied over to Windows. It is being used
though. When I add this line:
colorscheme torte
I get the nice blue comments, etc. No nice green cursor though. But if I
comment it out, my colors are not like in linux anymore.
:WinFull[tab][tab]...
etc?
Of course I can hit
Alt-Enter from vim when I run it from a command window but that
sucks, the fonts are all huge and it looks like an Atari game or
something.
Atari RoXoRed.
So have you figured a way to get vim full screen and if so, how did
you do it?
Click the maximise button on title bar. It's only one click.
Well yeah that does work and it is pretty good at that. I just hate it
when something *should* work but don't work. Thanks for your help.
--
~Ohmster * ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
.
- Follow-Ups:
- [vim] fullscreen (Was: [gvim] colorschemes)
- From: Troy Piggins
- [vim] fullscreen (Was: [gvim] colorschemes)
- References:
- Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- From: Ohmster
- Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- From: Troy Piggins
- Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- From: Ohmster
- Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- From: Troy Piggins
- Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- Prev by Date: Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- Next by Date: [vim] fullscreen (Was: [gvim] colorschemes)
- Previous by thread: Re: [gvim] colorschemes (Was: [slrn] How to collapse the tree in articles window?)
- Next by thread: [vim] fullscreen (Was: [gvim] colorschemes)
- Index(es):