Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.alt.net!not-for-mail From: owl Newsgroups: comp.os.linux.misc,alt.os.linux Subject: Re: Linux Command-Line Editors Vulnerable to High-Severity Bug Date: Fri, 21 Jun 2019 12:30:03 +0000 (UTC) Organization: O.W.L. Lines: 132 Message-ID: References: <4edqtf-7ho.ln1@Telcontar.valinor> <42qutf-bcq.ln1@Telcontar.valinor> NNTP-Posting-Host: boom.rooftop.invalid Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Face: $BHf)vM$6p_?9L`jmOQ54JeNyL+%MZGGRfH8&grb[Y%-jU`MCPAQN=/SVDa{(/67bP(YB}rjV^h>cUh Xref: csiph.com comp.os.linux.misc:27357 alt.os.linux:57063 In comp.os.linux.misc Carlos E.R. wrote: > On 21/06/2019 01.48, owl wrote: >> In comp.os.linux.misc Carlos E.R. wrote: >>> On 20/06/2019 20.39, owl wrote: >>>> In comp.os.linux.misc Carlos E.R. wrote: >>>>> On 20/06/2019 15.30, owl wrote: >>>>>> In comp.os.linux.misc Carlos E.R. wrote: >>>>>>> On 20/06/2019 01.09, owl wrote: >>>>>>>> In comp.os.linux.misc Carlos E.R. wrote: >>>>>>>>> On 19/06/2019 21.23, The Natural Philosopher wrote: >>>>>>>>>> On 19/06/2019 20:01, Carlos E.R. wrote: >>>>>>>>>>> On 19/06/2019 20.47, Georges wrote: >>>>>>>>>>>> Le 19/06/2019 à 20:32, Tauno Voipio a écrit : >>>>>>>>>>>>> On 19.6.19 11:55, Georges wrote: >>>>>>>>>>>>>> Le 19/06/2019 à 10:20, Carlos E.R. a écrit : >>>>>>>>>>> >>>>>>>>>>> ... >>>>>>>>>>> >>>>>>>>>>>>>> if you teach students, you struggle between time and contents (what >>>>>>>>>>>>>> you >>>>>>>>>>>>>> can teach on a 20h course for instance), so 'vi' is a good choice >>>>>>>>>>>>>> because it's widely used... and simple... once you get the >>>>>>>>>>>>>> philosophy ;) >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> If you really want to go backward in time, you should use ed, and no >>>>>>>>>>>>> newer derivatives like ex and vi with family. >>>>>>>>>>>>> >>>>>>>>>>>>> My favourite in primitive editors is nano. >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Try this with nano... ;) >>>>>>>>>>>> >>>>>>>>>>>> Let's consider a file with 2 columns (or more of course), separated with >>>>>>>>>>>> or or whatever you want, you need to invert columns : >>>>>>>>>>>> >>>>>>>>>>>> aaaaa bbbbb >>>>>>>>>>>> aaaaa bbbbb >>>>>>>>>>>> >>>>>>>>>>>> :1,$s/^\(.*\) \(.*\)$/\2 \1/ >>>>>>>>>>>> >>>>>>>>>>>> bbbbb aaaaa >>>>>>>>>>>> bbbbb aaaaa >>>>>>>>>>>> >>>>>>>>>>>> ;) >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Jstar (joe) can do that.  Switch to vertical block mode, select the >>>>>>>>>>> rectangle on the left, move to the right. >>>>>>>>>>> >>>>>>>>>> in a Wysiwyg I just highlight the text and move it >>>>>>>>> >>>>>>>>> I don't know any such editor that can do that in Linux. Of course, I >>>>>>>>> have not tried all in existence. >>>>>>>>> >>>>>>>> >>>>>>>> Vim. >>>>>>> >>>>>>> Doesn't count :-P >>>>>>> >>>>>>> Not Wysiwyg. >>>>>>> >>>>>> >>>>>> As plain text editors go, how is vim any less WYSIWYG than any >>>>>> other? If you are referring to mouse support, even terminal >>>>>> vim has it, and mouse-based block-select works in an xterm >>>>>> when you turn on mouse support. And there is also gvim, where >>>>>> it works out of the box. >>>>> >>>>> Mmmm. >>>>> >>>>> Well, I was thinking of GUI editors. Say, kwrite. >>>>> >>>> >>>> https://streamable.com/b1usd >>> >>> Ok, but it is a vim variant. gvim2. News to me, not available on >>> openSUSE. And if it follows the vi keyboard, I can't use it. >>> >>> >>> >>> >>> *Interface* >>> >>> «Like vi, Vim's interface is not based on menus or icons but on commands >>> given in a text user interface; its GUI mode, gVim, adds menus and >>> toolbars for commonly used commands but the full functionality is still >>> expressed through its command line mode. Vi (and by extension Vim) tends >>> to allow a typist to keep their fingers on the home row, which can be an >>> advantage for a touch typist.[29]» >>> >>> >>> On gvim2, I find nothing. >>> >> >> As far as I know the "2" in "gvim2" just means GTK2. There is also >> a GTK3 version. As for it being a "variant", it's the same vim >> I use in the terminal. >> >> anon@lowtide:~$ ls -l /etc/alternatives/vim >> lrwxrwxrwx 1 root root 16 Feb 18 09:31 /etc/alternatives/vim -> /usr/bin/vim.gtk >> anon@lowtide:~$ ls -l /etc/alternatives/gvim >> lrwxrwxrwx 1 root root 16 Feb 18 09:31 /etc/alternatives/gvim -> /usr/bin/vim.gtk >> anon@lowtide:~$ >> >> The gui can be brought up either with the '-g' switch or by starting as 'gvim'. >> https://software.opensuse.org/package/gvim > > Ok, then it is just the same as gvim in openSUSE. > > The thing remains, there is no GUI editor (besides gvim) that can move > columns. Joe does, but is not a GUI. > > Ah, and there is no one I know capable of writing in columns, except > word processors. > Depends on what you mean by writing in columns. https://streamable.com/p6uy6 > > (I do not consider gvim valid Wysiwyg because it does not expose its > full command set on the menu, you need the keyboard. On a normal GUI > program, first we see the command on some menu, then we learn the > shortcut, even if for just a short time.) > > WYSIWYG has nothing to do with command-set exposure. It has to do with the document. And if any text editor can be considered WYSIWYG, then vim can be also.