Sujet : Re: What programs do you make sure are installed on a new Linux
De : OFeem1987 (at) *nospam* teleworm.us (Chris Ahlstrom)
Groupes : comp.os.linux.miscDate : 20. Nov 2024, 13:47:05
Autres entêtes
Organisation : None
Message-ID : <vhklo9$2vjs$6@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : slrn/1.0.3 (Linux)
Lawrence D'Oliveiro wrote this post while blinking in Morse code:
On Wed, 20 Nov 2024 00:53:52 GMT, Charlie Gibbs wrote:
>
... it's often nice not to have to move your hands out of home
position.
>
That “advantage” makes no sense to me. My hands move all over the place --
to the various parts of the keyboard, and to the mouse, and other controls
-- wherever I need to operate something. Going back to home position is
something you can do by touch, very quickly, anyway. (That’s what those
little nubs are for.)
>
For sheer economy of keystrokes, vi(m) is hard to beat.
One keystroke is pretty cheap in the scheme of things.
>
You were saying ... ?
>
... And not all
editors can easily do things I use a lot in vi(m), such as placing the
cursor on a brace, bracket, or parenthesis and jumping to the
corresponding one.
>
Surely all the common editors can do that. What about moving between lines
with matching indentation -- handy for Python programming?
https://stackoverflow.com/questions/61435894/autoindentation-in-vim-for-python But 'smartindent' is not really that appropriate for Python (as you can
guess by it handling curly braces.) Instead, you'll want to use filetype
indent on in order to load per-filetype indentation rules, which should
load appropriate indentation for Python when you edit Python sources.
I'd recommend that you add this to your vimrc:
filetype plugin indent on
I'm not bothering to verify this.
Or you could try
https://github.com/mathialo/bython Bython
Python with braces. Because Python is awesome, but whitespace is awful.
Bython is a Python preprosessor which translates curly brackets into
indentation.
:-D
-- Shedenhelm's Law: All trails have more uphill sections than they have downhill sections.