duplicate-buffer| Keys | Menu | |
| X | Control+X Control+2 or Shift+F6 | View/Buffers/Duplicate Buffer |
| MS | Shift+F6 | Window/Duplicate Buffer |
Suppose the current buffer is named either n or n<i> . This command creates a new buffer named n<j>, and displays it in a window. The integer j is chosen so that the name of the new buffer is unique. The object and syntactic category of the new buffer are copied from the current buffer. The write permission of the new buffer is read-write and the new buffer is not associated with any file.