How do you create a quick mapping to toggle between buffers?
Answer
nnoremap <leader>b :b#<CR>
Explanation
Map <leader>b to :b# which switches to the alternate buffer. A quick way to toggle between your two most recent files.
nnoremap <leader>b :b#<CR>
Map <leader>b to :b# which switches to the alternate buffer. A quick way to toggle between your two most recent files.