1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-09 10:08:01 +00:00

Add Load A Directory Of Files Into The Buffer List as a vim til

This commit is contained in:
jbranchaud
2016-04-03 22:12:24 -05:00
parent 322654f3de
commit f4571ce18e
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
# Load A Directory Of Files Into The Buffer List
Consider the scenario where I want to go through all files in a directory to
make a series of minor, related changes. After editing each file, I can type
something like `:e path/to/next/file.md` to bring up the next file. That can
get a bit tedious though. Instead, I can load up all the files in the
directory with the `args` command:
```
:args path/to/files/*.md
```
From there, I can use `:bnext` (or `:bn) and `:bprev` to more quickly jump
through those files I want to edit.
I can also run `:ls` to see all the files loaded in to the buffer list at
that point.
[source](http://superuser.com/questions/396481/how-to-load-multiple-files-in-multiple-subdirectories-into-vim-buffers)