Tuesday, December 13, 2022

Re: How to quickly move to a specific buffer?

Lang Hurst said on Tue, 13 Dec 2022 17:28:39 -0800

>I copied this off the vim website, I think. In my .vimrc
>
> nnoremap <F5> :buffers<CR>:buffer<Space>
>
>Hit F5, just enter the number of the listed buffers.

This is almost exactly what I need, the two exceptions being:

1) It becomes very time consuming if the number of buffers exceeds the
height of the Vim window. However, this will usually not be the case.

2) F5 is a very inconvenient hotkey. Is there a way I could use
Shift+Ctrl+n ? How would I change the <F5> to change it to
Shift+Ctrl+n ?

Thanks,

SteveT

Steve Litt
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20221213222915.35051c0d%40mydesk.domain.cxm.

No comments:

Post a Comment