nvim: allow to use shift + arrow for selecting text
This commit is contained in:
parent
cba0c92d9c
commit
93c7960620
@ -74,3 +74,10 @@ map({ 'n', 'i', 'v' }, '<Home>',
|
||||
)
|
||||
|
||||
map('n', '<C-F>', '==') -- re-indent line
|
||||
|
||||
-- select text with shift + arrow
|
||||
for _, key in ipairs({ 'Left', 'Up', 'Down', 'Right' }) do
|
||||
local format = string.format
|
||||
map({ 'n', 'i' }, format('<S-%s>', key), format('<Esc>v<%s>', key))
|
||||
map({ 'v' }, format('<S-%s>', key), format('<%s>', key))
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user