tmux new-window -n `basename "$1"` vi "$1"
map ^Y mt:'m,'t w! ~/.ex_yank^M
map ^P :read ~/.ex_yank^M
I've forced myself to learn vi(1). One of the major reason is that it's typically the only editor that's available on different Unix(-like) systems. So it's quite useful to know at least some of the basic editing commands. Now I'm starting to really enjoy vi(1) and vim(1). Muscle memory has gotten so bad I have many MS Word documents with :wq sporadically appearing in the middle of a page![]()
vi is pre-installed on any unix-like system.
ed
, thanks to POSIX; however, with the rise of Linux, this is not guaranteed anymore. Gentoo, for example, had replaced vi
by nano
around 2006, Void Linux comes without ed
as well.That on editors/leafpad or ctrl-s for saving on other editors.I have many MS Word documents with :wq sporadically appearing in the middle of a page![]()
Thanks! Great tip! These colors are a real pain!Code::syntax off
ee
to edit from the login terminal, but for practical purposes use editors/leafpad. I can use editors/vim but am a lot quicker and productive with leafpad. vi
90% of the time. I don't even bother with editors/vim because I don't have a need for it.There is a sublime3 port, but it does not start for some reason, so I tried installing the port you mentioned. That works indeed.For coding editors/linux-sublime is very nice.
Oh yeah, vi or die (it even rhymes somewhat so I got to be right)PD: This does not try to be a flame "emacs vs vim" just a nice debate.
There is a sublime3 port, but it does not start for some reason, so I tried installing the port you mentioned. That works indeed.
^R is sweet. Should suggest the Kate devs to add such.
However, sublime seems not to have split screen, a feature I cannot live without.
[...]
Of course Emacs can do this too if you enable cua-selection-mode ;-)What I like with Kate too, is that it is the only editor (except of ancient Brief editor) I know of which is able to block mark, cut/copy and paste.
See the blue marked text block below the open menu. This is so convenient!