Vi by example – Buffers
Notes:
1. Open files in Vi are stored in buffers.
2. Unless the buffer is explicitly deleted (:bdelete, :bwipeout), or Vi is exited, the buffer will remain in memory and available.
Example:
1. Start editing file1.txt – # vi file1.txt
2. Edit file2.txt in a new window – :e file2.txt

3. Get all available buffers file names – :b <ctrl-d>

4. Go back to editing file1.txt in full screen – :b file1.txt

5. Put next buffer (which is now file2.txt) in a split with the current buffer (which is file1.txt) – :sbn

Commands:
- Load the Nth buffer in full windows mode – :b <N>
- Load a buffer by filename – :b <filename>
- Load next buffer – :bn
- Load previous buffer – :bp, :bN
- Split window with buffer (by number or filename) – :sb <N>, :sb <filename>
For more buffer commands type :help buffer
This blog is a space for my thoughts, ideas, concept development, observed oddities exploration but mainly for much needed RANTING space from a frustrated penguin against the powers that be. Long live the yellow beak!
There are 5 Comments to "Vi by example – Buffers"
Pillspot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.PillSpot.org. Vitamins {at} buy(.)online” rel=”nofollow”>.…
Categories: Eye Care.Blood Pressure/Heart.Anti-allergic/Asthma.Antidepressants.Vitamins/Herbal Supplements.Antiviral.Stop SmokingAntibiotics.Pain Relief.Mens Health.Stomach.Weight Loss.Mental HealthAnxiety/Sleep Aid.Womens Health.Skin Care.Antidia…
….
best.place.to {at} buy(.)clothes” rel=”nofollow”>.…
….
. {at} cialis(.)reviews” rel=”nofollow”>.…
….
best.place.to {at} buy(.)diamonds” rel=”nofollow”>.…
….
best.place.to {at} buy(.)viagra” rel=”nofollow”>.…