mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #27851 from zeertzjq/vim-760f664213de
vim-patch: reverts mswin.vim changes
This commit is contained in:
commit
8955cef0c6
@ -1,7 +1,7 @@
|
|||||||
" Set options and add mapping such that Vim behaves a lot like MS-Windows
|
" Set options and add mapping such that Vim behaves a lot like MS-Windows
|
||||||
"
|
"
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2024 Mar 3
|
" Last Change: 2024 Mar 13
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Bail out if this isn't wanted.
|
" Bail out if this isn't wanted.
|
||||||
@ -27,7 +27,10 @@ set backspace=indent,eol,start whichwrap+=<,>,[,]
|
|||||||
" backspace in Visual mode deletes selection
|
" backspace in Visual mode deletes selection
|
||||||
vnoremap <BS> d
|
vnoremap <BS> d
|
||||||
|
|
||||||
if has("clipboard_working")
|
" the better solution would be to use has("clipboard_working"),
|
||||||
|
" but that may not be available yet while starting up, so let's just check if
|
||||||
|
" clipboard support has been compiled in and assume it will be working :/
|
||||||
|
if has("clipboard")
|
||||||
" CTRL-X and SHIFT-Del are Cut
|
" CTRL-X and SHIFT-Del are Cut
|
||||||
vnoremap <C-X> "+x
|
vnoremap <C-X> "+x
|
||||||
vnoremap <S-Del> "+x
|
vnoremap <S-Del> "+x
|
||||||
@ -43,7 +46,7 @@ if has("clipboard_working")
|
|||||||
cmap <C-V> <C-R>+
|
cmap <C-V> <C-R>+
|
||||||
cmap <S-Insert> <C-R>+
|
cmap <S-Insert> <C-R>+
|
||||||
else
|
else
|
||||||
" Use unnamed register while clipboard not exist
|
" Use the unnamed register when clipboard support not available
|
||||||
|
|
||||||
" CTRL-X and SHIFT-Del are Cut
|
" CTRL-X and SHIFT-Del are Cut
|
||||||
vnoremap <C-X> x
|
vnoremap <C-X> x
|
||||||
@ -67,7 +70,7 @@ endif
|
|||||||
" Uses the paste.vim autoload script.
|
" Uses the paste.vim autoload script.
|
||||||
" Use CTRL-G u to have CTRL-Z only undo the paste.
|
" Use CTRL-G u to have CTRL-Z only undo the paste.
|
||||||
|
|
||||||
if has("clipboard_working")
|
if has("clipboard")
|
||||||
exe 'inoremap <script> <C-V> <C-G>u' . paste#paste_cmd['i']
|
exe 'inoremap <script> <C-V> <C-G>u' . paste#paste_cmd['i']
|
||||||
exe 'vnoremap <script> <C-V> ' . paste#paste_cmd['v']
|
exe 'vnoremap <script> <C-V> ' . paste#paste_cmd['v']
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user