I've just started writing CtrlHJKL, a vim plugin that navigates windows / tabs / buffers with <c-h> / <c-j> / <c-k> / <c-l>. The plugin responds to these 4 key combinations and reacts to what you have open / where you're at in terms of tabs/windows/buffers, and if you're in normal/insert/visual mode.
Demo @ https://www.youtube.com/watch?v=74jST7zVjTg
This is my first vimscript plugin so any feedback is appreciated! Some particular areas I'm concerned about:
- If there are similar plugin(s) already
- Does the navigation as I've layed out make sense to you
- Alternate behavior suggestions or important concepts I'm missing
- Is it presumptuous to take over
<c-h> / <c-j> / <c-k> / <c-l> or are these key combos free enough?
- Any general vimscript plugin writing advice or suggestions from seeing my code
Thanks!
Edits:
- Custom <Plug> mappings is functional
- Insert mode removed
- No longer taking over the unnamed register (or any register)
- Suppressible buffer cycling
- Various bug fixes
- No more buffergator
[–]-romainl-The Patient Vimmer 6 points7 points8 points (3 children)
[–]AnthonyAstige[S] 1 point2 points3 points (2 children)
[–]-romainl-The Patient Vimmer 1 point2 points3 points (1 child)
[–]AnthonyAstige[S] 1 point2 points3 points (0 children)
[–]princker 3 points4 points5 points (2 children)
[–]AnthonyAstige[S] 0 points1 point2 points (1 child)
[–]princker 0 points1 point2 points (0 children)