Просмотр исходного кода

v7.4.20

Added documentation related to v7.4.20 and the g:bufExplorerVersionWarn
option added by arcseldon via github.
jeff 8 лет назад
Родитель
Сommit
8d3b9c8bbe
2 измененных файлов с 22 добавлено и 11 удалено
  1. 14 4
      doc/bufexplorer.txt
  2. 8 7
      plugin/bufexplorer.vim

+ 14 - 4
doc/bufexplorer.txt

@@ -1,7 +1,7 @@
-*bufexplorer.txt*              Buffer Explorer       Last Change: 18 Sep 2017
+*bufexplorer.txt*              Buffer Explorer       Last Change: 18 Jan 2018
 
 Buffer Explorer                                *buffer-explorer* *bufexplorer*
-                                Version 7.4.19
+                                Version 7.4.20
 
 Plugin for easily exploring (or browsing) Vim|:buffers|.
 
@@ -249,18 +249,28 @@ current window, use: >
 The default is to use the global &splitright.
 
                                                    *g:bufExplorerSplitVertSize*
-To control the size of the new vertical split window. use: >
+To control the size of the new vertical split window, use: >
   let g:bufExplorerVertSize=n          " New split window is n columns wide.
   let g:bufExplorerVertSize=0          " New split windows size set by Vim.
 The default is 0, so that the size is set by Vim.
 
+                                                   *g:bufExplorerVersionWarn*
+To control wether to warning about Vim version or not, use: >
+  let g:bufExplorerVersionWarn=1       " Warn if version conflict.
+  let g:bufExplorerVersionWarn=0       " Do not warn if version conflict.
+The default is 1.
+
 ===============================================================================
 CHANGE LOG                                              *bufexplorer-changelog*
 
+7.4.20   January 18, 2017
+    - Thanks to arcseldon for supplying code that can remove the warning
+      messages if you using this plugin on an older version of Vim.  The
+      global variable is g:bufExplorerVersionWarn.
 7.4.19   September 18, 2017
     - Merged all changes from github back into this version and tried to sync
       to the correct version number.
-7.4.18 - Github
+7.4.18 - Github.
 7.4.17 - Github.
 7.4.16   August 14, 2017
     - Thanks to Yubo Su for the patch that adds 'f, F, V, and v' commands.

+ 8 - 7
plugin/bufexplorer.vim

@@ -1,5 +1,5 @@
 "============================================================================
-"    Copyright: Copyright (c) 2001-2017, Jeff Lanzarotta
+"    Copyright: Copyright (c) 2001-2018, Jeff Lanzarotta
 "               All rights reserved.
 "
 "               Redistribution and use in source and binary forms, with or
@@ -36,7 +36,7 @@
 " Name Of File: bufexplorer.vim
 "  Description: Buffer Explorer Vim Plugin
 "   Maintainer: Jeff Lanzarotta (delux256-vim at outlook dot com)
-" Last Changed: Monday, 18 September 2017
+" Last Changed: Thursday, 19 January 2018
 "      Version: See g:bufexplorer_version for version number.
 "        Usage: This file should reside in the plugin directory and be
 "               automatically sourced.
@@ -74,15 +74,16 @@ endif
 "1}}}
 
 " Version number
-let g:bufexplorer_version = "7.4.19"
-if !exists("g:bufexplorer_version_warn")
-    let g:bufexplorer_version_warn = 1
-endif
+let g:bufexplorer_version = "7.4.20"
 
 " Plugin Code {{{1
 " Check for Vim version {{{2
+if !exists("g:bufExplorerVersionWarn")
+    let g:bufExplorerVersionWarn = 1
+endif
+
 if v:version < 700
-    if g:bufexplorer_version_warn
+    if g:bufExplorerVersionWarn
         echohl WarningMsg
         echo "Sorry, bufexplorer ".g:bufexplorer_version." required Vim 7.0 or greater."
         echohl None