Re: VIM 7.0 scripts, ctags and taglist.vim

2006-07-12 Thread Aaron Griffin

Commet nitpick/correction:

// '#' is sed in the new autoload mechanism. see :h autoload in vim help
Is missing a 'u':
// '#' is used in the new autoload mechanism. see :h autoload in vim help


Re: question for charles (or anyone): netrw whacking t

2006-07-12 Thread Charles E Campbell Jr

Benji Fisher wrote:


I think I see the problem.  In $VIMRUNTIME/autoload/netrw.vim , in
the function netrw#DirBrowse() , there are the lines

 if fo =~ '[ta]'
  set fo-=t
  set fo-=a
  echohl Warning
  echo '***warning*** directory browsing and formatoptions ta are 
incompatible'
  echohl None
 endif

(I am not sure that I ever get to see that warning message.)  I think
that replacing :set with :setlocal will fix the problem.  Remember, when
dealing with a local option, :set changes both the local value and the
global default; :setlocal changes only the value...

I think it should be

:let l:spell = ...
 

Actually, I don't want to use local settings; just obstinate, I guess!  
What netrw v102h does
(and its available at my website, 
http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs
as Network Oriented Reading, Writing, and Browsing) is save global 
settings, make them

netrw-friendly, do the browsing thing, restore the settings.

Regards,
Chip Campbell



Patch 7.0.039

2006-07-12 Thread Bram Moolenaar

Patch 7.0.039
Problem:Calling inputdialog() with a third argument in the console doesn't
work.
Solution:   Make a separate function for input() and inputdialog(). (Yegappan
Lakshmanan)
Files:  src/eval.c


*** ../vim-7.0.038/src/eval.c   Wed Jul 12 21:48:56 2006
--- src/eval.c  Mon Jul 10 23:03:13 2006
***
*** 11321,11334 
  
  static int inputsecret_flag = 0;
  
  /*
!  * input() function
!  * Also handles inputsecret() when inputsecret is set.
   */
  static void
! f_input(argvars, rettv)
  typval_T  *argvars;
  typval_T  *rettv;
  {
  char_u*prompt = get_tv_string_chk(argvars[0]);
  char_u*p = NULL;
--- 11321,11339 
  
  static int inputsecret_flag = 0;
  
+ static void get_user_input __ARGS((typval_T *argvars, typval_T *rettv, int 
inputdialog));
+ 
  /*
!  * This function is used by f_input() and f_inputdialog() functions. The third
!  * argument to f_input() specifies the type of completion to use at the
!  * prompt. The third argument to f_inputdialog() specifies the value to return
!  * when the user cancels the prompt.
   */
  static void
! get_user_input(argvars, rettv, inputdialog)
  typval_T  *argvars;
  typval_T  *rettv;
+ int   inputdialog;
  {
  char_u*prompt = get_tv_string_chk(argvars[0]);
  char_u*p = NULL;
***
*** 11378,11384 
if (defstr != NULL)
stuffReadbuffSpec(defstr);
  
!   if (argvars[2].v_type != VAR_UNKNOWN)
{
char_u  *xp_name;
int xp_namelen;
--- 11383,11389 
if (defstr != NULL)
stuffReadbuffSpec(defstr);
  
!   if (!inputdialog  argvars[2].v_type != VAR_UNKNOWN)
{
char_u  *xp_name;
int xp_namelen;
***
*** 11413,11418 
--- 11418,11435 
  }
  
  /*
+  * input() function
+  * Also handles inputsecret() when inputsecret is set.
+  */
+ static void
+ f_input(argvars, rettv)
+ typval_T  *argvars;
+ typval_T  *rettv;
+ {
+ get_user_input(argvars, rettv, FALSE);
+ }
+ 
+ /*
   * inputdialog() function
   */
  static void
***
*** 11452,11458 
  }
  else
  #endif
!   f_input(argvars, rettv);
  }
  
  /*
--- 11469,11475 
  }
  else
  #endif
!   get_user_input(argvars, rettv, TRUE);
  }
  
  /*
*** ../vim-7.0.038/src/version.cWed Jul 12 21:48:56 2006
--- src/version.c   Wed Jul 12 21:56:30 2006
***
*** 668,669 
--- 668,671 
  {   /* Add new patch number below this line */
+ /**/
+ 39,
  /**/

-- 
A consultant is a person who takes your money and annoys your employees while
tirelessly searching for the best way to extend the consulting contract.
(Scott Adams - The Dilbert principle)

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


Gvim for KDE

2006-07-12 Thread Stefan Karlsson
These two sections in the documentation seems contradictory:

 *gui-kde* *kde* *KDE* *KVim*
  There is no KDE version of Vim.  There has been some work on a port using
  the Qt toolkit, but it never worked properly and it has been abandoned.
  Work continues on Yzis: www.yzis.org.

 *gui-x11-kde*
  For Vim-KDE, you need at least Qt(=2.x) and the corresponding kdelibs.
  To compile, you must use the --with-qt-dir configure flag because QTDIR
  is not automatically detected yet. Giving KDE's directories to the configure 
  script may also help in some cases.

By the way, is there anyone out there that is working on a KDE version? I have 
tried Kyzis a bit, but didn't really like it ...

-- 
Stefan


Re: Gvim for KDE

2006-07-12 Thread scott
stefan--

i don't get it

vim compiles for me just fine -- suse linux 10.0, using KDE,
vim 7.0.35 -- am i missing something here?  

are you asking for a binary?  if you want one that excludes
arabic, farsi, and righleft, and includes python 2.4.3, i
can probably find a way to get you one...

scott



On Wed, 2006-07-12 at 22:23 +0200, Stefan Karlsson wrote:
 These two sections in the documentation seems contradictory:
 
  *gui-kde* *kde* *KDE* *KVim*
   There is no KDE version of Vim.  There has been some work on a port using
   the Qt toolkit, but it never worked properly and it has been abandoned.
   Work continues on Yzis: www.yzis.org.
 
  *gui-x11-kde*
   For Vim-KDE, you need at least Qt(=2.x) and the corresponding kdelibs.
   To compile, you must use the --with-qt-dir configure flag because QTDIR
   is not automatically detected yet. Giving KDE's directories to the 
 configure 
   script may also help in some cases.
 
 By the way, is there anyone out there that is working on a KDE version? I 
 have 
 tried Kyzis a bit, but didn't really like it ...