[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim-mac
Subject:    a system vimrc file for Mac OS X
From:       Benji Fisher <fisherbb () bc ! edu>
Date:       2001-11-13 15:45:41
[Download RAW message or body]

I'll try again.  Also, a clarification:  this vimrc file tries to 
solve one problem in the terminal version (no colors) and one problem in 
the Carbon version (unsatisfactory setting for $PATH).

      If the attachment works, you should be able to save it as is.  If 
you use the in-line version below, you will have to replace all the 
"<Esc>" (five characters) with raw escape characters.  (Suggestion:  use 
the system clipboard to cut and paste into vim.  In Insert mode, enter a 
raw escape as <C-V><Esc>.  You can also save this e-mail and then edit 
it.  If you are using Mail.app then the text is saved as rtf.  You can 
open it with TextEdit.app and convert it to plain text.)

					--Benji Fisher



" System vimrc file for Mac OS X
" Author:  Benji Fisher <benji@member.AMS.org>
" Last modified:  12 November 2001
"
if has("gui")
   " Get a good value for $PATH.  For example, if teTeX is installed, this
   " should add the path to tex, pdflatex, etc.
   let $PATH = substitute(system("source /private/etc/csh.login ; 
printenv PATH"), "\<C-J>$", "", "")
else
   " Get colors in terminal (non-GUI) vim:
   " Thanks to Jens Vagelpohl
   if has("terminfo")
     set t_Co=16
     set t_AB=<Esc>[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
     set t_AF=<Esc>[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
   else
     set t_Co=16
     set t_Sf=<Esc>[3%dm
     set t_Sb=<Esc>[4%dm
   endif
endif


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic