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

Agree. In the same situation: Ctrl-x-Ctrl-f for filename completion.

I recently discovered that Ctrl-p and Ctrl-n will also work across files, if vim knows about them:

  vi file1 file2 file3
BTW: I learnt all the windowing commands at one time, but never really used them (and now forgotten). Instead, I use Ctrl-6 to swap between files, and I remapped Ctrl-p and -n to flick through files quickly:

  :map <C-n> <Esc>:n<CR>		" next file, with control-n
  :map <C-p> <Esc>:N<CR>		" prev file, with control-p
I also use alt-tab to switch between xterms (downside is you can't cut-n-paste with y and p between them).


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

Search: