home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.218 < prev    next >
Encoding:
Internet Message Format  |  2002-02-10  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.218
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.218
  11. Problem:    With explorer plugin: "vim -o filename dirname" doesn't load the
  12.             explorer window until entering the window.  
  13. Solution:   Call s:EditDir() for each window after starting up.
  14. Files:      runtime/plugin/explorer.vim
  15.  
  16.  
  17. *** ../vim60.217/runtime/plugin/explorer.vim    Mon Dec 31 16:49:06 2001
  18. --- runtime/plugin/explorer.vim    Mon Feb 11 19:54:55 2002
  19. ***************
  20. *** 1,8 ****
  21.   "=============================================================================
  22.   " File: explorer.vim
  23.   " Author: M A Aziz Ahmed (aziz@acorn-networks.com)
  24. ! " Last Change:    Thu, 21 Jun 2001 07:42:08
  25. ! " Version: 2.5
  26.   " Additions by Mark Waggoner (waggoner@aracnet.com) et al.
  27.   "-----------------------------------------------------------------------------
  28.   " This file implements a file explorer. Latest version available at:
  29. --- 1,8 ----
  30.   "=============================================================================
  31.   " File: explorer.vim
  32.   " Author: M A Aziz Ahmed (aziz@acorn-networks.com)
  33. ! " Last Change:    2002 Feb 11
  34. ! " Version: 2.5 + changes
  35.   " Additions by Mark Waggoner (waggoner@aracnet.com) et al.
  36.   "-----------------------------------------------------------------------------
  37.   " This file implements a file explorer. Latest version available at:
  38. ***************
  39. *** 1225,1230 ****
  40. --- 1225,1244 ----
  41.   
  42.   endfunction
  43.   
  44. + "---
  45. + " Setup for editing directories after starting up by going to each window.
  46. + " Required for "vim -o filename dirname"
  47. + "
  48. + function! s:EditAll()
  49. +   let t = winnr()
  50. +   while 1
  51. +     wincmd w
  52. +     if winnr() == t
  53. +       break
  54. +     endif
  55. +     call s:EditDir()
  56. +   endwhile
  57. + endfunction
  58.   
  59.   "---
  60.   " Set up the autocommand to allow directories to be edited
  61. ***************
  62. *** 1232,1237 ****
  63. --- 1246,1252 ----
  64.   augroup fileExplorer
  65.     au!
  66.     au BufEnter * call s:EditDir()
  67. +   au VimEnter * call s:EditAll()
  68.   augroup end
  69.   
  70.   " restore 'cpo'
  71. *** ../vim60.217/src/version.c    Mon Feb 11 17:46:17 2002
  72. --- src/version.c    Mon Feb 11 19:55:01 2002
  73. ***************
  74. *** 608,609 ****
  75. --- 608,611 ----
  76.   {   /* Add new patch number below this line */
  77. + /**/
  78. +     218,
  79.   /**/
  80.  
  81. -- 
  82. Witches prefer brooms: vacuum-cleaners need extension cords!
  83.  
  84.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  85. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  86.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  87.