- Can be as plain and simple and as high tech as you want
- Some sane first time recommendations
- Sublime Text -
subl <filename>orsubl <directorynamefrom the terminal will open the file up. However, use the GUI to do everything from open/creating the file if you want to. - VSCode -
code <filename>orcode <directorynamefrom the terminal will get you in VScode - Gedit (Gnome Edit on Linux, comes by default on flagship Ubuntu). Install
sudo apt install gedit. Open a file,gedit <filename>. If that doesnt work, as thegeditcommand is not found, try to usegnome-text-editor <filename>or the shorter versiongted <filename.
- nano - GNU Nano. https://nano-editor.org/ or the actual way, look at the man pages!
man nano. To open a file using nano (yes you see a pattern from the above now)nano <filename> - micro - https://micro-editor.github.io/ "a modern and intuitive terminal-based text editor". Another very easy to use and modern terminal friendly with scrolling, copy pasting and more capabilities! My go to! To use it,
micro <filename> - vim - For beginners, it may have a steep learning curve. All you really need to know if you "accidentally" open vim or get into vim as a part of some other process as the default text editor,
[Esc] :wqwill quit out from vim while saving changes.[Esc] :q!to exit without saving changes. Now vim is a very powerful text editor, I am not throwing a ny shade or saying its bad. As a total beginner, you might not even be able to exit if you are dropped into vim without absolutely knowing anything. Heres another small cheatsheet :) https://gist.github.com/w3cj/16bd4c9514a5522298f8 - If you now really want to go into Vim and use it for absolutely everything, go for it at your own pace!
vimtutorand the internet, will be your friend.
MacOS keyboard shortcuts were taken from https://gist.github.com/w3cj/022081eda22081b82c52
These keyboard shortcuts will work in most, if not all text editing places in macOS. (Form input, text editors, web browsers etc.) These keyboard shortcuts will also work on Windows (replace CMD with CTRL).
ALT + Left/Right
CMD + Right
CMD + Left
CMD + Up
CMD + Down
SHIFT + ALT + Left/Right
SHIFT + CMD + Left/Right
SHIFT + CMD + Up/Down