8cc.vim is a C compiler that exists as pure Vimscript. Is it small? It sure is! How about fast? Absolutely not! Efficient? Also no. But does it work and is it neat? You betcha!
Ever typed :wq
to write the buffer and exit in Vim? When you do that, you’re using Vimscript. Whenever one enters command mode :
in Vim, one is in fact using a live Vimscript interpreter. That’s the space in which this project exists and does its magic. Given enough time, anyway.
Vimscript itself was created by [Bram Moolenaar] in 1991. The idea was to execute batches of vim commands programmatically. It’s been used for a variety of purposes since then.
8cc is a lightweight C compiler that has been supplanted by chibicc, but that doesn’t matter much because as author [rhysd] admits, this is really just a fun concept project more than anything. It may take twenty minutes or more to compile “hello world”, but doing it entirely from within Vim is a trip.
I will wait for the emacs version, of course.
And then for the self-compiled Emacs
Yo dawg I heard you like Emacs. So I compiled Emacs with Emacs so you can Emacs while you Emacs.
Nano > Vim
they hated him because he spoke the truth
Read: move from Nano to Vim (:
hush now, the grownups are talking here
geany > micro > nano > vim > emacs
For people who like easy keybinds; I don’t know if I will try to learn vim or emacs more which would take a lot of time.
Geany…..GEANY… Just nah.
I used to look down on Geany. But it’s actually really good. The navigation panel will automatically recognize functions or, if you’re coding in assembler, subroutines. Being able to jump to a subroutine simply by clicking on the name in the navigation panel makes it infinitely more useful than vim.
mouse+AI over all
Notepad++ is the golden ratio of text editors.
Had I been forced to work under Linux OS I’d install VMWare with Windows 10 and edit text they way it’s meant to be edited.
FYI, Notepad++ runs just fine in Linux under Wine. No need to install Windoze ….
There is notepadqq for linux that is basically notepad++.
I went and installed notepadqq. Looks ok on the surface. First thing I tried didn’t work. Column select which I’ve used at work quit a bit. Also I went to their website and it looks like the project stalled back in 2019. Then to github to check last updated… A readme says it isn’t maintained anymore.
Nano is a pointer to Vim?
So much no. Completely different applications. Nano has some smart hints on how to save, exit, etc. With that said…learn the basics of vim and you’re probably good on any system.
You misspelled Pine.
I have always been conflicted on which to use, Vim has like text folding and vimscript, but nano is lighter and easier. I really want some simple advice on which to use, both are quite easy to use
Use Vim. Obviously.
Two completely different things.
Nano is a simple text editor. If you want to edit a text file once in a while, nano is fine. VIM is for when you want to write software and need an IDE, or when you want to write books, or when, whatever. VIM can be whatever you want and Nano is just a simple editor. Do you need all the IDE features? Do you need to write tons of technical documents? No? Then Nano is probably fine. If you want to write, start using VIM. It will improve your life, but if it’s just a once in a while thing, then Nano is just fine, but it doesn’t give you any features.
Ok, so vim = IDE and nano = Once in a whike
*while
when will HaD add an edit button‽
mcedit for life!
Agreed, everyone should move from nano to vim.
In all seriousness, those are two entirely different things. Nano is like notepad, VIM is like an entire operating system with an office suite build into it. They are completely different things. Nano is for people who edit a file once in a while where Vim is also able to edit a file. I’ve written books in Vim. I’ve written thousands of documents in Vim. User manuals that are shipped around the world, papers, everything you can name. It’s an entirely different use case.
You either know how to use Vim and like it or you don’t and you don’t.
I wonder if the author was listening to 10CC in the background when he was writing the code for 8CC?
“Art for art sakee, … “
Once you start using this compiler, you’ll never leave…
I think I’ll stick with gcc, or clang….. Thank you :) . Oh and nano. I used vi a lot in the early days of Linux, but prefer nano now, when working on the command line.
Ahh Vim.
The text editor for the true neck beard that cares more about the prestige of using an exclusive editor, than whatever they were actually editing.
Ahh keyboard! Input device for teue neck beard that cares more about prestige of using exclusive device than whatever they could actually be point’n clicking :)
What else do you use when you SSH into everything? No point’n click’n available :) . All my SBCs run headless (as an example) and who wants to setup VNC/RD when command line will do just fine :) .
Ssh -X will tunnel X connections from your headless server back to your workstation…
Or, you can just :!make
My pronouns are Vi and Vim, but there’s a special place in my heart for WordStar:
^Q A gnu
Searches for, and replaces without asking, all small antelope-like creatures.