Re: vim backspace

2006-10-02 Thread Charles E Campbell Jr

cga2000 wrote:


I don't suppose there's any way I can save the current interactively-
modified colorscheme to a file?



Perhaps http://vim.sourceforge.net/scripts/script.php?script_id=1081 
will be helpful for what
you want to do.  Interactively adjust the colorscheme using hicolors' 
colorscheme editor, then save it.


Regards,
Chip Campbell




Re: vim backspace

2006-10-02 Thread cga2000
On Mon, Oct 02, 2006 at 04:07:10PM EDT, Charles E Campbell Jr wrote:
 cga2000 wrote:
 
 I don't suppose there's any way I can save the current interactively-
 modified colorscheme to a file?
 
 
 Perhaps http://vim.sourceforge.net/scripts/script.php?script_id=1081 
 will be helpful for what
 you want to do.  Interactively adjust the colorscheme using hicolors' 
 colorscheme editor, then save it.

I'll take a look.  It may give me ideas on how to improve the
methodology outlined in my previous message.

Only problem I see is that I don't use a mouse.

Thanks

cga


Re: vim backspace

2006-10-01 Thread cga2000
On Sat, Sep 30, 2006 at 03:25:08PM EDT, samitj wrote:

[..]

 2) I modified my .vimrc file with some color settings. However, now I just
 get a blank screen with my xterm color covering the whole screen - cant see
 any text. HOw do I fix this?

I find that rather than making extensive changes to my .vimrc, a useful
approach is experimenting in Command-line mode .. one color change at a
time .. 

This lets you test your changes interactively before adding them to your
.vimrc.

Thanks

cga



Re: vim backspace

2006-10-01 Thread A.J.Mechelynck

cga2000 wrote:

On Sat, Sep 30, 2006 at 03:25:08PM EDT, samitj wrote:

[..]


2) I modified my .vimrc file with some color settings. However, now I just
get a blank screen with my xterm color covering the whole screen - cant see
any text. HOw do I fix this?


I find that rather than making extensive changes to my .vimrc, a useful
approach is experimenting in Command-line mode .. one color change at a
time .. 


This lets you test your changes interactively before adding them to your
.vimrc.

Thanks

cga




Rather than adding them to your vimrc, you may want to build a colorscheme (a 
script concerned only with color settings and living in the colors/ 
subdirectory of a directory named in 'runtimepath'). Note that $VIMRUNTIME/ 
and everything under it are reserved for files distributed with Vim: any 
upgrade can silently overwrite anything there, so you should use other trees 
for your own files: $VIM/vimfiles for system-wide scripts, ~/vimfiles or 
~/.vim (depending on OS) for user-private scripts.


There are a number of colorschemes in $VIMRUNTIME/colors/ ; I'm adding my own 
rather simple one (attached) as an additional source of inspiration.


To invoke a colorscheme, use the :colorscheme command with the script name 
(not including the .vim extension).


After making changes to your current colorscheme, :syntax on will reapply it.


Best regards,
Tony.
 Vim color file
 Maintainer:   Tony Mechelynck [EMAIL PROTECTED]
 Last Change:  2006 Sep 06
 
÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
 This is almost the default color scheme.  It doesn't define the Normal
 highlighting, it uses whatever the colors used to be.

 Only the few highlight groups named below are defined; the rest (most of
 them) are left at their compiled-in default settings.

 Set 'background' back to the default.  The value can't always be estimated
 and is then guessed.
hi clear Normal
set bg

 Remove all existing highlighting and set the defaults.
hi clear

 Load the syntax highlighting defaults, if it's enabled.
if exists(syntax_on)
  syntax reset
endif

 Set our own highlighting settings
hi SpecialKey   guibg=NONE
hi PyjamaEven   gui=NONEguibg=#FFD8FF
 white on red is not always distinct in the GUI: use black on red then
hi Errorguibg=red   
guifg=black
hi clear ErrorMsg
hi link  ErrorMsg   Error
 show cursor line/column (if enabled) in very light grey in the GUI,
 underlined in the console
if has(gui_running)
  hi clear CursorLine
  hi CursorLine guibg=#F4F4F4
endif
hi clear CursorColumn
hi link  CursorColumn   CursorLine
 do not make help bars and stars invisible
hi clear helpBar
hi link  helpBarhelpHyperTextJump
hi clear helpStar
hi link  helpStar   helpHyperTextEntry
 the following were forgotten in the syntax/vim.vim (and ended up cleared)
hi clear vimVar
hi link  vimVar Identifier
hi clear vimGroupName
hi link  vimGroupName   vimGroup
hi clear vimHiClear
hi link  vimHiClear vimHighlight
 display the status line of the active window in a distinctive color:
 bold white on bright red in the GUI, white on green in the console (where the 
bg is
 never bright, and dark red is sometimes an ugly sort of reddish brown).
hi StatusLine   gui=NONE,bold   guibg=red   
guifg=white
\   cterm=NONE,bold ctermbg=green   
ctermfg=white
 make the status line bold-reverse (but BW) for inactive windows
hi StatusLineNC gui=reverse,bold
\   cterm=reverse,bold
 define colors for the tab line:
 file name of unselected tab
hi TabLine  gui=NONEguibg=#EE   
guifg=black
\   cterm=NONE,bold ctermbg=lightgrey   
ctermfg=white
 file name of selected tab (GUI default is bold black on white)
hi TabLineSel   cterm=NONE,bold ctermbg=green   
ctermfg=white
 fillup and tab-delete X at right
hi TabLineFill  gui=NONE,bold   guibg=#CC   
guifg=#AA
\   cterm=NONE  ctermbg=lightgrey   
ctermfg=red
 tab and file number 1:2/3 (meaning tab 1: window 2 of 3) for selected tab
hi User1gui=boldguibg=white 
guifg=magenta
\   ctermbg=green   
ctermfg=black
 tab and file number 1:2/3 for unselected tab
hi User2guibg=#EE   
guifg=magenta
\   ctermbg=lightgrey   
ctermfg=black
 additional override for manpages à la Dr. Chip
hi manSubSectionStart   guibg=white 
guifg=yellow
\   

Re: vim backspace

2006-10-01 Thread cga2000
On Sun, Oct 01, 2006 at 08:34:50AM EDT, A.J.Mechelynck wrote:
 cga2000 wrote:

[..]

 There are a number of colorschemes in $VIMRUNTIME/colors/ ; I'm adding
 my own rather simple one (attached) as an additional source of
 inspiration.
 
 To invoke a colorscheme, use the :colorscheme command with the
 script name (not including the .vim extension).
 
 After making changes to your current colorscheme, :syntax on will
 reapply it.

This would reload the original colorscheme .. doing a reset defaults
or rather original color scheme, if there is one .. so-to-speak ..
right?

I don't suppose there's any way I can save the current interactively-
modified colorscheme to a file?  What I mean is that .. I use a given
colorscheme and make changes to it in a Vim session .. say, I want the
cusor to be easier to see :-) .. or I don't like the reverse-vid effect
that hilights searched/found items .. etc.  

So I play with all this stuff for 10 minutes until I like what I see.
And when I'm done with my changes, I want to save them somewhere .. Now,
I still need to copy the original colorscheme under a different name and
edit it manually to implement my changes one at a time, am I correct?

The way I do this is to split the screen .. so I have the colorscheme in
one half and my sample practice file in the other .. So, I use the UP
cursor key to retrieve my :hi commands .. gnu/screen to copy/paste
them in the colorscheme in lieu or the original statements .. and save
my changes to colorscheme_custom .. eg.  

Rather messy but safe .. As long as I can figure out which among the
dozens of commands I issued were the final ones for a particular :hi
feature, that is ..

I wasn't too sure where I could look for this (keywords?) .. but I didn't
find anything like this either in the tips/scripts or in the help files.

Thanks

cga


Re: vim backspace

2006-10-01 Thread Yakov Lerner

On 9/30/06, samitj [EMAIL PROTECTED] wrote:

2) I modified my .vimrc file with some color settings. However, now I just
get a blank screen with my xterm color covering the whole screen - cant see
any text. HOw do I fix this?


Did you try all existing colorshemes before trying to come up
with your own ?

I can recommend two things with regard to this:

1) http://www.vim.org/scripts/script.php?script_id=625
Colors Sampler Pack : All the color schemes on vim.sf.net -- 140
colorschemes in one download.
2) http://www.vim.org/scripts/script.php?script_id=1488
ScrollColors : Colorsheme Scroller, Chooser, and Browser .
With ScrollColors you can preview 140 colorschemes  in matter of minutes.

Yakov


Re: vim backspace

2006-10-01 Thread cga2000
On Sun, Oct 01, 2006 at 12:29:24PM EDT, A.J.Mechelynck wrote:
 cga2000 wrote:

[..]

 I suppose it's explained under :help :highlight and below more than 
 anywhere else (sections 12 and 13 of syntax.txt -- it's rather lengthy); 
 but it's mainly something you have to learn by doing.

I think I was unclear.

What I'm doing is using an existing colorscheme as a template.  

I proceed to make some changes to it while editing some sample file ..
Could be C code .. email .. python .. latex .. html whatever.  This
gives me instant feedback so I can see with my own eyes whether I have a
pleasant and readable shade of grey .. pink .. blue .. etc. 

Heck .. I use a 256-color xterm and well I'm working on it but I haven't
yet managed to memorize all of them .. color113 .. color178 .. I don't
even know if they're reds..  greens .. or blues.

I thought that doing it this way would make it a lot more easier than
coding a colorscheme from scratch and hoping for the best.

But then I went looking for a save current colorscheme feature and
didn't find one.  So I had to go through the hassle of figuring out what
I did by retrieving the successive commands that I issued.

Just another case of barking the wrong tree .. just editing the color
scheme in one half of my display .. saving it and loading the modified
version to check the results is just as quick and decidedly better than
issuing :hi commands manually since it ..

1. saves a good deal of typing  .. and .. 

2. once you're satisfied with the result .. you're done.  The last
   version of the colorscheme that you saved corresponds exactly to what
   you are looking at.

Thanks for helping me figure out a more sensible methodology.

cga



vim backspace

2006-09-30 Thread samitj

HI,

I need help regarding a couple of issues I am facing in vi. I am a new vi
user...

1) vi does not allow delete to be continuted to the previous line (X), in
other words it doesnt delete the newline. How else am I supposed to append
the current line to the end of previous line. Is there way to customize to
be able to have delete continue to the previous line. I have not seen an
editor that does not allow this...

2) I modified my .vimrc file with some color settings. However, now I just
get a blank screen with my xterm color covering the whole screen - cant see
any text. HOw do I fix this?

thanks for your help!

Samit






-- 
View this message in context: 
http://www.nabble.com/vim-backspace-tf2362657.html#a6582260
Sent from the Vim - General mailing list archive at Nabble.com.



Re: vim backspace

2006-09-30 Thread Yakov Lerner

On 9/30/06, samitj [EMAIL PROTECTED] wrote:


HI,

I need help regarding a couple of issues I am facing in vi. I am a new vi
user...

1) vi does not allow delete to be continuted to the previous line (X), in
other words it doesnt delete the newline. How else am I supposed to append
the current line to the end of previous line. Is there way to customize to
be able to have delete continue to the previous line. I have not seen an
editor that does not allow this...


2 ways:
1) Normal-mode J
2) ':set bs=indent,eol,start' and use backspace
in insert mode

- :he 'backspace'   :he J

Yakov


Re: vim backspace

2006-09-30 Thread Yakov Lerner

On 9/30/06, samitj [EMAIL PROTECTED] wrote:

2) I modified my .vimrc file with some color settings. However, now I just
get a blank screen with my xterm color covering the whole screen - cant see
any text. HOw do I fix this?


1. vim -u NONE -U NONE ~/.vimrc
2. Remove your color customizations from .vimrc
3. Save, quit

Yakov