mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-10 20:13:47 -05:00
Map Y to y$
See :help Y. This just makes more sense, man.
This commit is contained in:
@@ -31,6 +31,7 @@ mostly `:set` calls.) Here's a taste:
|
|||||||
* `'incsearch'`: Start searching before pressing enter.
|
* `'incsearch'`: Start searching before pressing enter.
|
||||||
* `'listchars'`: Show trailing whitespace.
|
* `'listchars'`: Show trailing whitespace.
|
||||||
* `'scrolloff'`: Always show at least one line above/below the cursor.
|
* `'scrolloff'`: Always show at least one line above/below the cursor.
|
||||||
|
* `nmap Y y$`: Make `Y` behaves like `C` and `D`.
|
||||||
|
|
||||||
[source]: https://github.com/tpope/vim-sensible/master/plugin/sensible.vim
|
[source]: https://github.com/tpope/vim-sensible/master/plugin/sensible.vim
|
||||||
|
|
||||||
|
|||||||
@@ -51,4 +51,6 @@ if exists('+undofile')
|
|||||||
set undofile
|
set undofile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
nnoremap Y y$
|
||||||
|
|
||||||
" vim:set ft=vim et sw=2:
|
" vim:set ft=vim et sw=2:
|
||||||
|
|||||||
Reference in New Issue
Block a user