About: Replace buffer list when switching   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

1. Save the current session: :mks! ~/v/project1.vim 2. Quit vim :xa 3. Restart with a different session file: vim -S ~/v/project2.vim I was exiting and re-opening vim because if I just loaded the second project file, a list of both project buffers would appear in my buffer list. That was not what I wanted -- I wanted to replace the first buffer list completely wtih the second. There is a simple way to do this. At the top of a session file, add this: 1,999bdelete :so ~/v/project2.vim

AttributesValues
rdfs:label
  • Replace buffer list when switching
rdfs:comment
  • 1. Save the current session: :mks! ~/v/project1.vim 2. Quit vim :xa 3. Restart with a different session file: vim -S ~/v/project2.vim I was exiting and re-opening vim because if I just loaded the second project file, a list of both project buffers would appear in my buffer list. That was not what I wanted -- I wanted to replace the first buffer list completely wtih the second. There is a simple way to do this. At the top of a session file, add this: 1,999bdelete :so ~/v/project2.vim
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 551(xsd:integer)
Author
  • Mark Stosberg
Complexity
  • basic
Created
  • 2003(xsd:integer)
ID
  • 552(xsd:integer)
NEXT
  • 554(xsd:integer)
Rating
  • 3(xsd:integer)
abstract
  • 1. Save the current session: :mks! ~/v/project1.vim 2. Quit vim :xa 3. Restart with a different session file: vim -S ~/v/project2.vim I was exiting and re-opening vim because if I just loaded the second project file, a list of both project buffers would appear in my buffer list. That was not what I wanted -- I wanted to replace the first buffer list completely wtih the second. There is a simple way to do this. At the top of a session file, add this: 1,999bdelete That will delete the first 999 existing buffers, effectively allowing any new buffer definitions in the rest of the session file to replace what is currently there. Now you can switch directly to a new session without exiting. Just use: :so ~/v/project2.vim
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software