Don't unmap Y before nvim 0.5

This version check might need some refinement, not actually sure when it
was introduced but it's deffo not in 0.4.4.
This commit is contained in:
Kenneth Benzie 2022-02-15 10:53:58 +00:00
parent 8277ad04ab
commit e6e3a10c87

View File

@ -115,7 +115,7 @@ else
noremap <leader>p "+p
noremap <leader>P "+P
endif
if has('nvim')
if has('nvim-0.5')
" Undo neovim's default mapping of Y to y$
unmap Y
endif