===== Сочетания клавиш ===== **Ctrl+^** - режим выделения\\ **Alt+^** - скопировать\\ **Ctrl+K** - вырезать\\ **Ctrl+U** - вставить\\ **Esc, затем Shift+4** - "мягкий" [[https://unix.stackexchange.com/questions/122795/long-line-wrapping-in-nano|перенос строк]]\\ **Esc, затем Shift+L** - "жёсткий" перенос строк ''sudo nano /usr/share/nano/yaml.nanorc'' # Supports `YAML` files syntax "YAML" "\.ya?ml$" header "^(---|===)" "%YAML" ## Keys color magenta "^\s*[\$A-Za-z0-9_-]+\:" color brightmagenta "^\s*@[\$A-Za-z0-9_-]+\:" ## Values color white ":\s.+$" ## Booleans icolor brightcyan " (y|yes|n|no|true|false|on|off)$" ## Numbers color brightred " [[:digit:]]+(\.[[:digit:]]+)?" ## Arrays color red "\[" "\]" ":\s+[|>]" "^\s*- " ## Reserved color green "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " ## Comments color brightwhite "#.*$" ## Errors color ,red ":\w.+$" color ,red ":'.+$" color ,red ":".+$" color ,red "\s+$" ## Non closed quote color ,red "['\"][^['\"]]*$" ## Closed quotes color yellow "['\"].*['\"]" ## Equal sign color brightgreen ":( |$)" https://github.com/serialhex/nano-highlight/blob/master/yaml.nanorc ===== Литература ===== [[https://habrahabr.ru/post/106748/|Nano: И всё-таки его придётся выучить]] [[https://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/|The Beginner’s Guide to Nano, the Linux Command-Line Text Editor]]