yegappan / mru

Most Recently Used (MRU) Vim Plugin
Other
259 stars 48 forks source link

buffer write on :MRU #27

Closed cruisercoder closed 4 years ago

cruisercoder commented 5 years ago

What's the recommend way to handle writing the buffer when invoking MRU to avoid opening a new window when there are changes in the current buffer? autowrite / autowriteall does not seem to apply and it would make using and explaining MRU to new users.

cruisercoder commented 5 years ago

My current solution below (mapped to space), which saves the any buffer changes before calling MRU.

nnoremap :update:MRU

byron-hawkins commented 5 years ago

This doesn't work for me, so it must depend on some part of your .vimrc that is not shown here. I use this instead (to open MRU using ctrl+w):

noremap <C-w> :up!<CR>:MRU<CR>