[xubuntu-users] [Bulk] Re: Recommendations For A Great Text Editor?

Ralf Mardorf ralf.mardorf at rocketmail.com
Tue Dec 9 08:01:48 UTC 2014


On Tue, 09 Dec 2014 08:03:54 +0100, Patrice ARNAL wrote:
> VI is my favorite text editor, and simple data digging, log files 
> parsing and sorting since 1980
                            ^^^^ Since it's the default editor for
             :)             *NIX, before Linux existed, that's why all
                            of us should be able to use it and that's
                            why a command is named "visudo" and not
                            "emacssudo" or "someeditorsudo". Anyway ...
Vi provides some additional features, but for "simple data digging, log
files parsing and sorting" I perfer the much easier to use nano also
for usage with visudo:

[rocketmouse at archlinux ~]$ cat .bashrc 
# [snip]
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

export EDITOR="nano"



IMO for serious work a modern GUI editor such as Sublime Text or even
Pluma (the Gedit fork) is much more useful.



For nano's highlighting I use:

rocketmouse at archlinux ~]$ cat .nanorc 
# [snip]
syntax "unidark" "(\.([jrs]html?|sgml?|xml|ajs|rdf|xslt?|log|conf|config|cfg|cnf|rc|lst|list|defs|ini|desktop|mime|types|preset|cache|seat|service|htaccess)$|(^|/)(\w*PKGBUILD|.jwmrc|.nanorc|crontab|mirrorlist|group|hosts|passwd|rpc|netconfig|shadow|fstab|inittab|inputrc|protocols|sudoers|sudoers.tmp)$|conf.d/|.config/)"
header "^#!.*/(da|ba|z|k|pdk)?sh[-0-9_]*"
icolor brightgreen "^[0-9A-Z_]+\(\)"
color brightgreen "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
color brightgreen "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color brightgreen "-[Ldefgruwx]\>"
color brightgreen "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
color brightmagenta "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightcyan "(^|[[:space:]])#.*$"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color ,blue "[[:space:]]+$"



Regards,
Ralf

-- 
Marge Simpson: We used to call ourselves the Cool Moms.

Bart Simpson: There is nothing cooler than calling yourself cool.




More information about the xubuntu-users mailing list