From the PHP script, we jump to the mark in the Perl program, then answer the question where did the PHP script go? It went into a buffer.
A buffer is just a place in memory, so we can say the PHP script is in a buffer or the PHP script is still in the computers memory.
To see what is in the buffers we can type
:buffers and the shortcut for that is
:ls (LiSt what is in the buffers)
To see what is int the next buffer we would type
:bn (buffer next) and to go to the previous buffer we can type
:bp (for buffer previous)
If you make changes in a buffer, you will need to add a bang/exclaimation point or
:set hidden to move between your documents with unsaved changes.
If you have made changes and want to go back to the last saved document (or when you opened the document if you have not pressed save yet) type
:e!
To jump to a specific buffer type
:b(buffer number)
To close a single buffer type
:bd (for buffer delete)
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
19 Comments