Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I see you're using Command-T, but for anyone else, these remaps will list all buffers using F1 and quickly jump to b1..b9 using \1 .. \9, and toggle between alt buffers using \\, all in normal mode. Super handy and quick.

  " Buffers ***

  nnoremap <F1> :ls<CR>
  nnoremap \1 :b 1<CR>
  nnoremap \2 :b 2<CR>
  nnoremap \3 :b 3<CR>
  nnoremap \4 :b 4<CR>
  nnoremap \5 :b 5<CR>
  nnoremap \6 :b 6<CR>
  nnoremap \7 :b 7<CR>
  nnoremap \8 :b 8<CR>
  nnoremap \9 :b 9<CR>
  nnoremap \\ :b #<CR>


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: