Show two files on screen

I wanted to open two files at once and shown on the screen to compare them but it didn't work with the texteditor because there are two tabs in the same window and the texteditor can only show one tab.
I installed kate there it is possible.
I also installed micro because I saw that the window can be split. Unfortunately I don't know how to do this and where to enter the command hsplit or vsplit or how it is possible to tile the window so that micro looks like this and can show two files

Does someone know?
Or can I open two instances of nano or texteditor or image viewer...in two windows on the screen?
I didn't find a function like "open in new window" in rightclick menu.
I forgot where the function is for tiled windows.

This is asked for gnome desktop in Zorin 17.3

In micro, press Ctrl+E to enter "command mode", and then the command to run. To split panes, that would be either vsplit or hsplit. You can switch between them with Ctrl+W, and close them with Ctrl+Q.

You can read more about all the options with Ctrl+G, and search through it for keywords normally with Ctrl+F.

Although, if you are willing to use a terminal-based editor, I strongly recommend learning vi, vim or nvim.

1 Like

For the Text Editor there is a Way: when You have the Tab's in one Window, click on a Tab and choose the Option to move it in a new Window:

1 Like

Thank you, that was very helpful!

Thank you, that helped me! Now splitting panes worked. I also managed to open a second tab in micro for a new file. But how can I open a second file in the splitted pane? I get to work to write in something on the right side of the window, but not to open a file there.

I got it to work in micro: First open one file, then press ctrl+E to open the command center. There enter vsplit or hsplit and the path to the second file, e.g.
vsplit path/to/file.
You can also drag and drop the file from filemanager into the commandfield of micro.

Or you first split the window with entering vsplit or hsplit, then press CTRL+O and enter the path/to/file or drag the file there

Micro is a bit different from nano and more complicated, but I like the options which it offers.