I have a leader key set up, and a mapping that allows me to exit windows without typing :
:
let mapleader = 'f'
map <leader>q = :q<CR>
Today I installed MattesGroeger/vim-bookmarks
using Vundle, and everything went fine. However when I view the annotations list using ma
, and then I try to exit it using fq
, vim spits out this error phrase:
E21: Cannot make changes, 'modifiable' is off
But I can exit it just fine if I manually type out :q
The other answers I've seen so far regarding the modifiable
/nonmodifiable
attributes of buffers imply that a solution is to set the buffer as modifiable, however that seems like a hack. It looks like map
and friends are restricted in use in buffers without modifiable
set, so is there a specific kind of map
that will allow me to use this mapping across all buffers?