3 ms·
You can! just use this: :args *.rb Sadly, the above is easy to forget if you don't use it a lot but such is life for everything in a powerful text editor.
by jcr 16y ago
You can! just use this:
:args *.rb
Sadly, the above is easy to forget if you don't use it a lot but such is life for everything in a powerful text editor.
Now here's the fun part. The above will open each of the files in a new buffer. You might want each buffer to be put into it's own tab, so just add the following to your ~/.vimrc to map CTR-ALT-T to create a new tab for each of the existing buffers.
" open each buffer in it's own tab
map <C-M-T> :tab sball<CR>
If the vim default CTRL-t drives you nuts because you use a web browser far too often, you can remap it in vim to create a new tab. I've got mine set as follows so it not only makes CTRL-t create a new tab, but it also puts your focus in the vim command and fills in the ":e " so you can open a new file:
" Open New Tab
map <C-T> :tabnew<CR>:e
Yes, this last bit is due to the personal annoyance of hitting CTRL-t and mistakenly expecting a new tab to appear when vim doesn't work that way by default.