[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / f / htg / hypno / leftpol / o / vg ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 410283cf948523e⋯.png (36.43 KB, 400x400, 1:1, vi.png) (h) (u)

[–]

 No.946280>>946388 >>946398 >>946404 >>946421 >>946461 >>946674 >>946687 >>946891 [Watch Thread][Show All Posts]

OK so normally I really like minimalistic setups, and generally find minimal software better to use. I would frequent the minimalism threads when they showed up.

Well in one of them, someone suggested using nvi instead of vim.

I tried it and holy fuck it sucks.

>no indicators at the bottom to let you know what mode you're in

>no visual selection modes

>>Without Visual Block (CTRL-v), you can't comment out/uncomment a bunch of lines as easily

>no g commands.

>>you can hit G to go to the bottom, but without gg you can't go back to the top. Have fun hitting k!

>>without gj, gk, g$, and g0, you can't easily traverse a long line that's longer than the screen and has wrapped visually

>no highlighting for parentheses, brackets, and curly braces

>>GuixSD gives you vi and not vim, and has you write a scheme config file

>>>It was not fun

 No.946290>>946308

Ed is minimal software. Vi is faux-minimal software in the vein of Arch, urxvt, and i3. On a gradient between the simplistic, scriptable Ed and the extensible, flexible Emacs, you could even say that Emacs is more minimal than Vi in the sense that it's in principle one thing, an elisp repl. Vi is that shitty compromise of minimal fetishists who don't understand what minimalism is.


 No.946308

>>946290

>it's in principle one thing, an elisp repl

You're not fooling anyone.


 No.946312>>946327 >>946467 >>946477 >>947671

Wrote my own simplistic command line editor years ago. Used emacs once and it was for that.

It's a great programming exercise, it pushes you to appreciate other people's work and face the same limitations. Humbling! You should try doing so before shitting on any other tools.

Most people on tech talk from ignorance and shallow experience. Most regurgitate theories and concepts forgetting they live in a cosmos so complex our tech is tin toys. It's all a matter of angles.

Emacs or Vi, Nano or Ed, Sublime or Notepad++ how does it matter to the moon or to the insects polinating plants and making the air you breathe?

Be pragmatic, choose one, master it and use it to code your heart out. Have fun with it, it's a toy made to help build toys, better toys hoepefully.

None of it is a big deal.

Opinions don't matter in this universe, only experience. Enjoy yourself coding and using your mind purposefully, whether it's through Emacs or any other editor, transcend the BS and go to the core.


 No.946316

vi > OP

sage


 No.946327>>946336 >>946339

>>946312

good post

I get the impression that all the "minimalist" guys are just trolls on here. I mean writing pages upon pages of arguments about what is more minimal - as if it helps them accomplish anything...


 No.946334

emacs is shit. gvim is win.


 No.946336

>>946327

It can be worse than that, as many people build their own identity around an editor. They buy T-shirts, follow all the forums, put stickers on their computer etc. Amusingly enough, these cheerleaders do not typically contribute any code.


 No.946339>>946369

>>946327

>writing pages upon pages of arguments about what is more minimal

True, that's not very minimalist of them.


 No.946369

>>946339

Ultimate minimalism to me is doing it rather than wishing it. No words just PoC. That's how the universe works, no plans, just immaculate doing.


 No.946388

>>946280 (OP)

>If you run it from a CLI that means it's minimal

look faggots just because you use it from a tty does not mean shit


 No.946396

> no indicators at the bottom to let you know what mode you're in

Works for me (add set showmode to your .exrc)

> no visual selection modes

Didn't exist in vi, so it's not in nvi either. But you can still select entire groups of lines or even paragraphs. For example, 9>> shifts over 9 lines, and >} shifts over one paragraph. Same deal for yanking and deleting, etc.

>>no g commands.

You can use command :1 to go to the first line of file, or you can map your own keys if you really want that gg (see man page on how to map keys).

> no highlighting for parentheses, brackets, and curly braces

So what? % key bounces on matching symbols.

> GuixSD

More like GUI XD amirite.

Anyway, vi can do a lot, and you can search the web for .exrc to find examples and ideas.


 No.946398>>946408

>>946280 (OP)

Nano > Vi


 No.946404>>946413

>>946280 (OP)

Vi is on everything I need to fix; from some ancient ass redhat install that manages an industrial control system to an irix system running an MRI machine. Screwing around on linux at home isn't a use case bound for a resume or technical journal.


 No.946408

>>946398

>nano

disgusting

it's not even minimal

I once downloaded one of the first ever alpha versions of nano, and it had all the features I needed but it started instantly, where modern """nano""" takes 0.1 seconds to even start.

busybox's vi is way better than that crap, and it's more minimal as well.


 No.946413>>946420

>>946404

and emacs has tramp mode so you don't even need an editor installed on the computer you are working on.


 No.946420>>946603

>>946413

>implying industrial control system with remote access

>implying MRI control system with remote access

Irrelevant.


 No.946421>>946526

>>946280 (OP)

I think you're looking for ee.

vi a shit

nano a shit


 No.946461

>>946280 (OP)

>you can hit G to go to the bottom, but without gg you can't go back to the top. Have fun hitting k!

False.


 No.946467>>946494

>>946312

Yeah these people just generalise all the time like they have some amazing insight into all the people out there working hard and having their own insights and thoughts. It's like shut the fuck up and be humble you morons.


 No.946477>>946494

>>946312

>reality is like, subjective man! *takes bong rip*

>in comparative religion class I totally realized the buddha was totally like *loads another dab* dude!

Almost as bad as bixnood, saved for future fun-posting.


 No.946494

>>946477

>>946467

Some people make such a big deal out of a fucking editor they get stuck with one neurone for a lifetime.

Tyson didn't knock people out with criticism of their fighting techniques, he got into the ring and did it. No philosophy, dedication and focused work.


 No.946526

>>946421

>dedicates 1/4 of screen for newfag advice

no thanks


 No.946603>>947561

>>946420

>usning a text editor over a 100 baud uart telnet

>mainframe neckbeards from silicone valley with gigabit connections in early 90's thought this was a great idea

Why not just copy the file after editing it in comfortable environment set for your needs? Why would an embedded MRI machine even have a text editor on it's non-volatile memory?


 No.946674>>946896

>>946280 (OP)

>no indicators at the bottom to let you know what mode you're in

:set showmode

>no visual selection modes

Just set a mark with

mm
, go to the end, then use something like
d'm
to delete the entire range.

>Without Visual Block (CTRL-v), you can't comment out/uncomment a bunch of lines as easily

>no g commands.

On first line:

mm

On last line:

:'m,.s/^/#
to put # at the start of each line in the range.

>>you can hit G to go to the bottom, but without gg you can't go back to the top. Have fun hitting k!

Just press 1G ("go to line 1") or put

map gg 1G
in your exrc if you really want gg.

>>without gj, gk, g$, and g0, you can't easily traverse a long line that's longer than the screen and has wrapped visually

True

>no highlighting for parentheses, brackets, and curly braces

:set showmatch


 No.946687

>>946280 (OP)

>Minimal visual

>Minimal functionality

Learn the difference, it might help you.


 No.946891

>>946280 (OP)

>Could I be incompetent and not know what I'm doing?

>No. It's the program that is wrong.


 No.946896>>946916 >>946996 >>947652

>>946674

>:'m,.s/^/#

The fact that vimfags think this is acceptable user experience is laughworthy.


 No.946916>>946948

>>946896

>vimfags

That's vi, not Vim. In Vim you just Ctrl-v, select the area, shift-i #.

You could just put

map V :'m,/s/^/
in your .exrc which makes it about as simple as Vim. mm at start, shift-V # (or whatever you want to put) enter at end. Same exact amount of keystrokes. E.g.:

mm}V# ESC
vs.
Ctrl-v}I# RET


 No.946948>>946996

>>946916

Or just install this plugin, select the text and press gc:

https://github.com/tpope/vim-commentary


 No.946996>>947604

>>946896

>>946948

Fucking n00bs don't even know the difference between vi and vim. Much less how to make a simple macro. 200% disgusting!


 No.947561

>>946603

Why do you need your data Anon, surely its better off with us anyway...


 No.947604>>947647

>>946996

You miss the point ya fuckass. Any decent development tool in 2018, be that a proper IDE, or a text editor like Sublime or Atom that doesn't pretend the mouse was never created, has all this shit built in.

>needing to write macros for something as simple as commenting out a line of text

>defending this


 No.947647

>>947604

>Any decent development tool in 2018, be that a proper IDE, or a text editor like Sublime or Atom that doesn't pretend the mouse was never created, has all this shit built in.

So does Vim. It's vi that doesn't.

>>needing to write macros for something as simple as commenting out a line of text

>>defending this

You only have to do that if you use vi, like I said. In Vim it's unnecessary.


 No.947652

File (hide): 7041faacb774ed4⋯.png (165.23 KB, 303x311, 303:311, 10you.png) (h) (u)

>>946896

Woah, way to show you power level Bill.


 No.947671>>947704

>>946312

I don't know why someone would bother to type out this nonsense. Opinions indeed don't matter in this universe. Least of all this one.


 No.947704

>>947671

I don't know why someone would bother to type out this nonsense. Opinions indeed don't matter in this universe. Least of all this one.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
36 replies | 3 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / ausneets / f / htg / hypno / leftpol / o / vg ][ watchlist ]