To: vim_dev@googlegroups.com Subject: Patch 8.0.0321 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.0321 Problem: When using the tiny version trying to load the matchit plugin gives an error. On MS-Windows some default mappings fail. Solution: Add a check if the command used is available. (Christian Brabandt) Files: runtime/mswin.vim, runtime/macros/matchit.vim *** ../vim-8.0.0320/runtime/mswin.vim 2012-07-25 13:07:31.000000000 +0200 --- runtime/mswin.vim 2017-02-09 20:21:22.710235591 +0100 *************** *** 1,7 **** " Set options and add mapping such that Vim behaves a lot like MS-Windows " " Maintainer: Bram Moolenaar ! " Last change: 2012 Jul 25 " bail out if this isn't wanted (mrsvim.vim uses this). if exists("g:skip_loading_mswin") && g:skip_loading_mswin --- 1,7 ---- " Set options and add mapping such that Vim behaves a lot like MS-Windows " " Maintainer: Bram Moolenaar ! " Last change: 2017 Feb 09 " bail out if this isn't wanted (mrsvim.vim uses this). if exists("g:skip_loading_mswin") && g:skip_loading_mswin *************** *** 23,42 **** " backspace in Visual mode deletes selection vnoremap d ! " CTRL-X and SHIFT-Del are Cut ! vnoremap "+x ! vnoremap "+x ! ! " CTRL-C and CTRL-Insert are Copy ! vnoremap "+y ! vnoremap "+y ! ! " CTRL-V and SHIFT-Insert are Paste ! map "+gP ! map "+gP ! cmap + ! cmap + " Pasting blockwise and linewise selections is not possible in Insert and " Visual mode without the +virtualedit feature. They are pasted as if they --- 23,44 ---- " backspace in Visual mode deletes selection vnoremap d ! if has("clipboard") ! " CTRL-X and SHIFT-Del are Cut ! vnoremap "+x ! vnoremap "+x ! ! " CTRL-C and CTRL-Insert are Copy ! vnoremap "+y ! vnoremap "+y ! ! " CTRL-V and SHIFT-Insert are Paste ! map "+gP ! map "+gP ! cmap + ! cmap + ! endif " Pasting blockwise and linewise selections is not possible in Insert and " Visual mode without the +virtualedit feature. They are pasted as if they *************** *** 44,51 **** " Uses the paste.vim autoload script. " Use CTRL-G u to have CTRL-Z only undo the paste. ! exe 'inoremap