Skip to main content
edited body
Source Link
romainl
  • 42.3k
  • 5
  • 87
  • 118

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#bn             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
:b#             current is 'b', alternate is 'a'
:keepalt e c    current is 'c', alternate is still 'a'
:keepalt bd     current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
:b#             current is 'b', alternate is 'a'
:keepalt e c    current is 'c', alternate is still 'a'
:keepalt bd     current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:bn             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
:b#             current is 'b', alternate is 'a'
:keepalt e c    current is 'c', alternate is still 'a'
:keepalt bd     current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
edited body
Source Link
romainl
  • 42.3k
  • 5
  • 87
  • 118

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
:b#             current is 'b', alternate is 'a'
:keepalt e c    current is 'c', alternate is still 'a'
:bd       keepalt bd     current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
:b#             current is 'b', alternate is 'a'
:keepalt e c    current is 'c', alternate is still 'a'
:bd             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
:b#             current is 'b', alternate is 'a'
:keepalt e c    current is 'c', alternate is still 'a'
:keepalt bd     current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
added 36 characters in body
Source Link
romainl
  • 42.3k
  • 5
  • 87
  • 118

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#             current is 'b', altalternate is 'a'
:b#             current is 'a', altalternate is 'b'
:b#             current is 'b', altalternate is 'a'
:keepalt e c    current is 'c', altalternate is still 'a'
:bd             current is 'b', altalternate is 'a'
:b#             current is 'a', altalternate is 'b'

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#             current is 'b', alt is 'a'
:b#             current is 'a', alt is 'b'
:b#             current is 'b', alt is 'a'
:keepalt e c    current is 'c', alt is still 'a'
:bd             current is 'b', alt is 'a'
:b#             current is 'a', alt is 'b'

I think you are looking for :help :keepalt:

$ vim a b       current buffer is 'a', no alternate file
:b#             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
:b#             current is 'b', alternate is 'a'
:keepalt e c    current is 'c', alternate is still 'a'
:bd             current is 'b', alternate is 'a'
:b#             current is 'a', alternate is 'b'
Source Link
romainl
  • 42.3k
  • 5
  • 87
  • 118
Loading