Skip to content

Commit

Permalink
feat: add visual block-wise mode (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
fitrh authored Apr 29, 2022
1 parent ec83b90 commit e8862e6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lua/modes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,12 @@ M.setup = function(opts)
end
end

if (key == 'v' or key == 'V') and not operator_started then
if (key:lower() == 'v' or key == '') and not operator_started then
M.highlight('visual')
end
end

if current_mode == 'v' then
if key == utils.replace_termcodes('<esc>') then
M.reset()
end
end

if current_mode == 'V' then
if current_mode:lower() == 'v' or current_mode == '' then
if key == utils.replace_termcodes('<esc>') then
M.reset()
end
Expand Down

0 comments on commit e8862e6

Please sign in to comment.