Aubrey Portwood

WordPress — Stoicism — 🎾

Make selecting with mouse in Vim do so in Visual Mode, Remap arrow keys to act as hjkl

| Permalink

Okay, this is a quick one. In Vim I hated two things:

  1. That selecting text with the mouse did not use visual mode.
  2. That the arrow keys, in visual mode, did not act like hjkl.

Here is what I did to fix #1:

set selectmode=key

Here’s what I did to fix #2:

:map <down> j
:map <up> k
:map <left> h
:map <right> l

Leave a Comment