shell highlighting problem, after command name 'locale'

2008-03-06 Thread Yakov Lerner

I see problem with shell highlighting with the following piece,
apparently caused by the command named 'locale'.
I am using latest runtime files. from rsync.
Does anybody see incorrect highlighting, too ?
--
#!/bin/bash

utf-off() {
echo "export LANG=C; unset LC_ALL LANGUAGE"
unset `locale | awk -F= '{print$1}' `
export LANG=C; unset LC_ALL LANGUAGE;
env|egrep '^(LANG|LC_)';
}
--

The problem seem to begin with the word 'locale'.

If I remove space after 'locale' (so it becomes locale|),
there is another strange highlighting in the word 'locale'.

Yakov

--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: upgrading vim on linux

2008-03-06 Thread Yakov Lerner
You can try the scriptvim7-install.sh (attached)
which downloads, builds and installs latest vim7
in one command without arguments.

Description and download link ia at:
http://www.vim.org/scripts/script.php?script_id=1473
Invocation:
sh ./vim7-install.sh

Or save the script directly  from this link:
  http://ilerner.3b1.org/vim7-install.sh

Attached.

Yakov

--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



vim7-install.sh
Description: Bourne shell script


Re: shell highlighting problem, after command name 'locale'

2008-03-06 Thread Vladimir Marek
On Thu, Mar 06, 2008 at 10:13:16AM +0200, Yakov Lerner wrote:
> 
> I see problem with shell highlighting with the following piece,
> apparently caused by the command named 'locale'.
> I am using latest runtime files. from rsync.
> Does anybody see incorrect highlighting, too ?
> --
> #!/bin/bash
> 
> utf-off() {
> echo "export LANG=C; unset LC_ALL LANGUAGE"
> unset `locale | awk -F= '{print$1}' `
> export LANG=C; unset LC_ALL LANGUAGE;
> env|egrep '^(LANG|LC_)';
> }
> --

> The problem seem to begin with the word 'locale'.
> 
> If I remove space after 'locale' (so it becomes locale|),
> there is another strange highlighting in the word 'locale'.

It seems to work fine for me.

!cat $VIMRUNTIME/syntax/sh.vim | grep Version
" Version:  89

-- 
Vlad


pgpBLfZgrqisl.pgp
Description: PGP signature


Re: shell highlighting problem, after command name 'locale'

2008-03-06 Thread Yakov Lerner

On Thu, Mar 6, 2008 at 12:11 PM, Vladimir Marek <[EMAIL PROTECTED]> wrote:
>
> On Thu, Mar 06, 2008 at 10:13:16AM +0200, Yakov Lerner wrote:
>  >
>  > I see problem with shell highlighting with the following piece,
>  > apparently caused by the command named 'locale'.
>  > I am using latest runtime files. from rsync.
>  > Does anybody see incorrect highlighting, too ?
>  > --
>  > #!/bin/bash
>  >
>  > utf-off() {
>  > echo "export LANG=C; unset LC_ALL LANGUAGE"
>  > unset `locale | awk -F= '{print$1}' `
>  > export LANG=C; unset LC_ALL LANGUAGE;
>  > env|egrep '^(LANG|LC_)';
>  > }
>  > --
>
>  > The problem seem to begin with the word 'locale'.
>  >
>  > If I remove space after 'locale' (so it becomes locale|),
>  > there is another strange highlighting in the word 'locale'.
>
>  It seems to work fine for me.
>
>  !cat $VIMRUNTIME/syntax/sh.vim | grep Version
>  " Version:  89

Version 95 here.

Yakov

--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Patch 7.1.267

2008-03-06 Thread Bram Moolenaar


Patch 7.1.267
Problem:When changing folds cursor may be positioned in the wrong place.
Solution:   Call changed_window_setting_win() instead of
changed_window_setting().
Files:  src/fold.c


*** ../vim-7.1.266/src/fold.c   Sun Jan 13 21:57:25 2008
--- src/fold.c  Wed Mar  5 12:48:43 2008
***
*** 2307,2313 
  
  /* If some fold changed, need to redraw and position cursor. */
  if (fold_changed && wp->w_p_fen)
!   changed_window_setting();
  
  /* If we updated folds past "bot", need to redraw more lines.  Don't do
   * this in other situations, the changed lines will be redrawn anyway and
--- 2307,2313 
  
  /* If some fold changed, need to redraw and position cursor. */
  if (fold_changed && wp->w_p_fen)
!   changed_window_setting_win(wp);
  
  /* If we updated folds past "bot", need to redraw more lines.  Don't do
   * this in other situations, the changed lines will be redrawn anyway and
*** ../vim-7.1.266/src/version.cWed Feb 27 16:13:09 2008
--- src/version.c   Thu Mar  6 22:43:05 2008
***
*** 668,669 
--- 668,671 
  {   /* Add new patch number below this line */
+ /**/
+ 267,
  /**/

-- 
>From "know your smileys":
 %  Bike accident.  A bit far-fetched, I suppose; although...
 o  _ _ _
 _o /\_   _ \\o  (_)\__/o  (_)
   _< \_   _>(_) (_)/<_\_| \   _|/' \/
  (_)>(_) (_)(_)   (_)(_)'  _\o_

 /// 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///

--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---