mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
Hi Bram,

Attached are the filetype, syntax and ftdetect files for mrxvt config
files. Sorry I couldn't make your April 20th deadline ... but maybe you
can stick these in Vim-7.1 if they don't make the Vim-7.0 release.

Gautam

-- 
BTW, FWIW, IMHO, AFAIK, yes. OTOH, AAMOF, maybe not. YMMV.
 Created   : Wed 26 Apr 2006 01:20:53 AM CDT
 Modified  : Thu 27 Apr 2006 03:21:09 AM CDT
 Author: Gautam Iyer [EMAIL PROTECTED]
 Description   : Syntax file for mrxvtrc

 Quit when a syntax file was already loaded
if exists(b:current_syntax)
  finish
endif

 Define options.
let s:boolOpts = 
'(highlightTabOnBell|syncTabTitle|hideTabbar|autohideTabbar|bottomTabbar|hideButtons|syncTabIcon|veryBoldFont|maximized|fullscreen|reverseVideo|loginShell|jumpScroll|scrollBar|scrollbarRight|scrollbarFloating|scrollTtyOutputInhibit|scrollTtyKeypress|scrollWithBuffer|transparent|transparentForce|transparentScrollbar|transparentMenubar|transparentTabbar|tabUsePixmap|utmpInhibit|visualBell|mapAlert|meta8|mouseWheelScrollPage|multibyte_cursor|tripleclickwords|showMenu|xft|xftNomFont|xftSlowOutput|xftAntialias|xftHinting|xftAutoHint|xftGlobalAdvance|tabShell|cmdAllTabs|cmdInitTabs|protectSecondary|thai|borderLess|overrideRedirect|holdExit|broadcast|smartResize|smoothResize|pointerBlank|cursorBlink|noSysConfig|disableMacros|linuxHomeEndKey|sessionMgt)'

let s:colorOpts = 
'(vt\d+.(foreground|background)|background|foreground|ufBackground|textShadow|i?tab(Foreground|Background)|color([0-9]|1[0-5]|BD|UL|RV)|(scroll|trough|highlight|cursor|pointer|border|tint)Color|cursorColor2)'

let s:numOpts = 
'(vt\d+.saveLines|maxTabWidth|minVisibleTabs|saveLines|scrollbarThickness|xftmSize|xftSize|desktop|externalBorder|internalBorder|lineSpace|pointerBlankDelay|cursorBlinkInterval|initTermNumber|shading|backgroundFade|bgRefreshInterval|fading|opacity|opacityDegree|xftPSize)'

let s:strOpts = 
'(vt\d+\.(tabTitle|command)|tabTitle|termName|title|clientName|iconName|bellCommand|holdExitText|backspaceKey|deleteKey|printPipe|cutChars|answerbackString|smClientID|geometry|confFileSave|path|boldFont|m?font[1-5]?|xftFont|xftmFont|xftPFont|inputMethod|greektoggle_key|menu|menubarPixmap|vt\d+\.Pixmap|Pixmap|scrollbarPixmap|tabbarPixmap|appIcon|multichar_encoding)'

syn case match

syn match   mrxvtComment[EMAIL PROTECTED] '^\s*!.*$'
syn match   mrxvtComment'\v^\s*!\s*\w+[.*]\w+.*:.*'


 Generic options (string / color / number / boolean)

syn match   mrxvtOptErr '\v^\s*\w+[.*]?.{-}(:|$)'
exec 'syn match mrxvtBoolOpts   nextgroup=mrxvtBoolVal,mrxvtValErr'
\ '\v^\w+[.*]'.s:boolOpts.':\s*'
exec 'syn match mrxvtNumOptsnextgroup=mrxvtNumVal,mrxvtValErr'
\ '\v^\w+[.*]'.s:numOpts.':\s*'
exec 'syn match mrxvtColorOpts  nextgroup=mrxvtColorVal'
\ '\v^\w+[.*]'.s:colorOpts.':\s*'
exec 'syn match mrxvtStrOptsnextgroup=mrxvtStrVal,mrxvtValErr'
\ '\v^\w+[.*]'.s:strOpts.':\s*'

syn match   mrxvtValErr contained '\v.+$'
syn match   mrxvtBoolValcontained
\ '\v\c(0|1|yes|no|on|off|true|false)\s*$'
syn match   mrxvtStrVal contained '\v.+$'
syn match   mrxvtColorVal   contained '\v#[0-9a-fA-F]{6}\s*$'
syn match   mrxvtNumVal contained '\v[+-]?(0[0-7]+|\d+|0x[0-9a-fA-F]+)$'


 Options with special values

syn match   mrxvtOptionsnextgroup=mrxvtSBstyle,mrxvtValErr
\ '\v^\w+[.*]scrollbarStyle:\s*'
syn match   mrxvtSBstylecontained '\v(plain|xterm|rxvt|next|sgi)$'

syn match   mrxvtOptionsnextgroup=mrxvtSBalign,mrxvtValErr
\ '\v^\w+[.*]scrollbarAlign:\s*'
syn match   mrxvtSBaligncontained '\v(top|bottom)$'

syn match   mrxvtOptionsnextgroup=mrxvtTSmode,mrxvtValErr
\ '\v^\w+[.*]textShadowMode:\s*'
syn match   mrxvtTSmode contained
\ '\v(none|(top|bot)?(left|right)|(top|bottom))$'

syn match   mrxvtOptionsnextgroup=mrxvtGrkKbd,mrxvtValErr
\ '\v^\w+[.*]greek_keyboard:\s*'
syn match   mrxvtGrkKbd contained '\v(iso|ibm)$'

syn match   mrxvtOptionsnextgroup=mrxvtXftWt,mrxvtValErr
\ '\v^\w+[.*]xftWeight:\s*'
syn match   mrxvtXftWt  contained '\v(light|medium|bold)$'

syn match   mrxvtOptionsnextgroup=mrxvtXftSl,mrxvtValErr
\ '\v^\w+[.*]xftSlant:\s*'
syn match   mrxvtXftSl  contained '\v(roman|italic|oblique)$'

syn match   mrxvtOptionsnextgroup=mrxvtXftWd,mrxvtValErr
\ '\v^\w+[.*]xftWidth:\s*'
syn match   mrxvtXftWd  contained
\ '\v((ultra)?(condensed|expanded)|normal)$'

syn match   mrxvtOptionsnextgroup=mrxvtXftHt,mrxvtValErr
\ '\v^\w+[.*]xftRGBA:\s*'
syn match   mrxvtXftHt  contained '\v(v?(rgb|bgr)|none)$'


Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Nikolai Weibull
On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote:
 Attached are the filetype, syntax and ftdetect files for mrxvt config
 files. Sorry I couldn't make your April 20th deadline ... but maybe you
 can stick these in Vim-7.1 if they don't make the Vim-7.0 release.

Just a comment on the syntax definition.  You could be using
:syn-keyword for quite a few of the things that you're currently using
:syn-match for.  :syn-keyword is clearer and a lot faster as well.

  nikolai


Re: Now that we have feedkeys()...

2006-04-27 Thread Bram Moolenaar

Nikolai Weibull wrote:

 On 4/27/06, Bram Moolenaar [EMAIL PROTECTED] wrote:
   One could map 'd' to map 'ac' once pressed, but it would be hard to
   make sure that 'ac' was unbound if the user cancelled the command in
   any way.
 
  Can't you do this with :omap?
 
 Considering that something bound by :omap should perform a motion, how
 would you create a motion that needs to describe a region that begins
 before the cursor and ends after it, like other text objects do?

I don't think you can change where the operated text starts from an
:omap.  At least not outside of Visual mode.

-- 
Q: What do you call a fish without an eye?
A: fsh!
Q: What do you call a deer with no eyes?
A: no eye deer.
Q: What do you call a deer with no eyes and no legs?
A: still no eye deer.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


Re: Bug: closing an inactive gui tab on windows

2006-04-27 Thread sean
On Thu, 27 Apr 2006 09:47:06 +0100 (BST)
Georg Dahn [EMAIL PROTECTED] wrote:

 Hi!
 
 There is another strange behavior with gui tabs on Windows.
 
 I. First test case
 
 1. Open gVim (gvim -u NONE)
 2. Assure, that 'guioptions' contain 'e' (gui tab)
 3. Open a new tab with :tabnew and write something
 4. Now the right tab is active
 5. Right click on the left (inactive) tab and close it
 
 Then nothing seems to happen. Click somewhere in the edit
 window and the closed tab disappears.
 
 II. Second test case
 
 Do (1) - (5) as above.
 
 There are still two tabs seen. Just do (5) again.
 Then the message is shown, that the last tab cannot
 be closed (E784).
 
 I am running Vim 7.0f02 on Windows XP.

This is perhaps a problem for Vim only on Windows, testing
your procedure above on Linux doesn't exhibit the strangeness.

Sean




Re: Now that we have feedkeys()...

2006-04-27 Thread Nikolai Weibull
On 4/27/06, Bram Moolenaar [EMAIL PROTECTED] wrote:

 Nikolai Weibull wrote:

  Considering that something bound by :omap should perform a motion, how
  would you create a motion that needs to describe a region that begins
  before the cursor and ends after it, like other text objects do?

 I don't think you can change where the operated text starts from an
 :omap.  At least not outside of Visual mode.

No, but using visual mode worked just fine.  I rarely use visual mode,
so I keep forgeting about it ;-).

Thanks everyone!


Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote:

 On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote:

  Attached are the filetype, syntax and ftdetect files for mrxvt config
  files. Sorry I couldn't make your April 20th deadline ... but maybe you
  can stick these in Vim-7.1 if they don't make the Vim-7.0 release.
 
 Just a comment on the syntax definition.  You could be using
 :syn-keyword for quite a few of the things that you're currently using
 :syn-match for.  :syn-keyword is clearer and a lot faster as well.

Hi Nicolai,

Thanks for pointing this out, I'll correct it.

Since Benji Fisher's computer is 6 times faster than mine (which I'm
still envious about), I'll jump through hoops to get my Vim to load up
0.1s faster ... :)

:).

Gautam

-- 
A physics professor is one who talks in someone else's sleep.


Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Nikolai Weibull
On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote:
 On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote:

  Just a comment on the syntax definition.  You could be using
  :syn-keyword for quite a few of the things that you're currently using
  :syn-match for.  :syn-keyword is clearer and a lot faster as well.

 Hi Nicolai,

Hi.  I'm curious, why did you spell my name with a 'c'?  During the
last couple of days, people have called me Nicholas, Niklas, and twice
Nicolai.  I see a conspiracy forming...

 Thanks for pointing this out, I'll correct it.

:-)

  n.o.w.


Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Gautam Iyer
On Thu, Apr 27, 2006 at 09:40:56PM +0200, Nikolai Weibull wrote:

 On 4/27/06, Gautam Iyer [EMAIL PROTECTED] wrote:

  On Thu, Apr 27, 2006 at 11:35:52AM +0200, Nikolai Weibull wrote:
 
   Just a comment on the syntax definition.  You could be using
   :syn-keyword for quite a few of the things that you're currently using
   :syn-match for.  :syn-keyword is clearer and a lot faster as well.
 
  Hi Nicolai,
 
 Hi.  I'm curious, why did you spell my name with a 'c'?  During the
 last couple of days, people have called me Nicholas, Niklas, and twice
 Nicolai.  I see a conspiracy forming...

Well if Vim does not flag it as a spell error, I don't give it a second
thought. Though I'm knot quiet clear weather this algorithm always leads
two the write spelling.

:)

GI

-- 
'Television' -- The electronic device that alternates between extreme 
violence and finding great long-distance rates.


Re: mrxvtrc filetype and syntax files

2006-04-27 Thread Mikolaj Machowski
Dnia czwartek, 27 kwietnia 2006 21:40, Nikolai Weibull napisaƂ:
  Hi Nicolai,

 Hi.  I'm curious, why did you spell my name with a 'c'?  During the
 last couple of days, people have called me Nicholas, Niklas, and twice
 Nicolai.  I see a conspiracy forming...

Hello Mikolaj,

It is popular name but in each language is spelled differently :)

m.



GTK2 and Vim70f

2006-04-27 Thread Steven Klass
Hi all,

I have been unsuccessful at building 7.0f with gtk2 support.  I build
all of the dependancies in a self contained tree, but vim configure is
not recognizing the gtk2 trees..

I have attached my build script for reference but no matter what I do
I can't seem to get this to look at my new gtk2 builds.  Am I
missing something?

Is there a way to point to using my gtk2 directories?  For gtk2
gtk-config is depracated in favor of pkg-config.  The local version of
pkg-config does correctly identify gtk2 as a valid library using
pkg-config --list-all.  Anyone else out there confirm this?



#!/bin/bash

#
# File   build-me.sh
#
# By: Steven Klass
#
# Description:
#

dest=`pwd`/gvim7.0

files= ./fontconfig-2.3.2.tar \
  ./freetype-2.1.10.tar \
  ./libpng-1.2.8.tar \
  ./jpeg-6b.tar \
  ./tiff-3.7.4.tar \
  ./glib-2.8.6.tar  \
  ./pkg-config-0.20.tar \
  ./cairo-1.0.4.tar \
  ./atk-1.10.3.tar \
  ./pango-1.10.4.tar \
  ./gtk+-2.8.17.tar \
  ./vim70f.tar


logfile='/tmp/gvim7.log'


echo Building gvim with prefix = $dest  | tee $logfile

if [ -d $dest ] ; then
  echo Removing Destination Directory $dest | tee -a $logfile
  rm -rf $dest/*
  mkdir $dest/bin
  mkdir $dest/lib
else
  mkdir $dest
fi

cd src

# Time to set up the build stuff..

export PATH=$dest/bin:$PATH
export LD_LIBRARY_PATH=$dest/lib:$LD_LIBRARY_PATH
export LDFLAGS=-L$dest/lib
export CPPFLAGS=-I$dest/include

echo Building dependancies | tee -a $logfile
echo == | tee -a $logfile
for file in $files; do
  options=

  echo Starting to work on $file | tee -a $logfile
  dir=`echo $file | sed s/\.tar//`

  if [ -d $dir ] ; then
echo  Removing existing directory $dir | tee -a $logfile
rm -rf $dir
  fi

  echo  Untarring $file | tee -a $logfile
  tar xpvf $file  /dev/null

  if [ -d $dir ] ; then

cd $dir/

if [ -f configure ] ;then


  if [ $dir == ./libpng-1.2.8 ] ; then
cat scripts/makefile.smsc | sed
s#prefix=/usr/local#prefix=$dest#  Makefile
  else
# Option specific stuff..
if [ $dir == ./fontconfig-2.3.2 ] ; then
  echo   ..setting options  | tee -a $logfile
  options=--disable-docs
fi
if [ $dir == ./vim70f ] ; then
  echo   ..setting options  | tee -a $logfile
  options=--with-features=huge --enable-gui=gtk2
--enable-perlinterp --enable-pythoninterp --enable-cscope
fi

echo  ..configure $options | tee -a $logfile

./configure --prefix=$dest $options  /dev/null
if [ $? -eq 0 ] ; then
  echo   ..configure ok | tee -a $logfile
else
  echo   ..configure $dir not ok | tee -a $logfile
  exit
fi

  fi

  if [ $dir == ./cairo-1.0.4 ] ; then
mv config.h config.h.orig
cat config.h.orig | sed s/#define HAVE_FT_GLYPHSLOT_EMBOLDEN
1//  config.h

  fi

  make  /dev/null
  if [ $? -eq 0 ] ; then
echo   ..make ok | tee -a $logfile
  else
echo   ..make $dir not ok  | tee -a $logfile
exit
  fi
  make test  /dev/null
  if [ $? -eq 0 ] ; then
echo   ..make test ok | tee -a $logfile
  else
echo   ..make test $dir not ok  | tee -a $logfile
  fi

  make install   /dev/null
  if [ $? -eq 0 ] ; then
echo   ..make install ok | tee -a $logfile
  else
echo   ..make install $dir not ok  | tee -a $logfile
exit
  fi

else
  echo Configure script does not exists for $dir
  exit
fi
  else
echo Directory $dir does not exist for $file
exit
  fi
  echo  $dir is complete | tee -a $logfile
  cd ../
done





--
---

Steven M. Klass

Design Automation Manager

SMSC
3930 East Ray Road, Suite 200
Phoenix, Arizona 85044
(480) 704-7046 (Desk)
(480) 225-1112 (Mobile)
[EMAIL PROTECTED]