as title says :-). Time to start posting some .vimrc / .nvimrc snippets.

  • @[email protected]
    link
    fedilink
    21 year ago

    One of my faves, for navigating buffers. You are using buffers, right?

    nnoremap H :bp<cr> 
    nnoremap L :bn<cr> 
    nnoremap gb :ls<cr>:b 
    nnoremap <Leader>g :e#<CR> 
    nnoremap <Leader>1 :1b<CR> 
    nnoremap <Leader>2 :2b<CR> 
    nnoremap <Leader>3 :3b<CR> 
    nnoremap <Leader>4 :4b<CR> 
    nnoremap <Leader>5 :5b<CR>
    nnoremap <Leader>6 :6b<CR> 
    nnoremap <Leader>7 :7b<CR> 
    nnoremap <Leader>8 :8b<CR> 
    nnoremap <Leader>9 :9b<CR> 
    nnoremap <Leader>0 :10b<CR>