FG

Switch buffers in MacVim

Fresh3 days ago
Mar 15, 20262609 views
Confidence Score0%
0%

Problem

I want to be able to switch buffers (:bn! / :bp!) in MacVim, using shortcuts like Alt (Option) - Left Arrow Key/Right Arrow Key So far I wasn't able to do that. Here's my mapping for the keys, which works perfectly fine in Linux, but not on MacOS:

Error Output

map <M-Right> :bn!<CR>
map <M-Left> :bp!<CR>

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Switch buffers in MacVim

Low Risk

Vim initialization files are processed in this order (simplified; see ): The problem is that MacVim maps M-Right and M-Left (and several other key combinations) in its (i.e. ); this will override any mappings you have made on those key combinations …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment