How would I get started using it?
Preferably for C++/C related stuff.
How would I get started using it?
Preferably for C++/C related stuff.
Other urls found in this thread:
What do you even mean? Just use it like you would any other text editor.
When I log into my Xenix system with my 110 baud teletype, both vi
*and* Emacs are just too damn slow. They print useless messages like,
'C-h for help' and '"foo" File is read only'. So I use the editor
that doesn't waste my VALUABLE time.
Ed, man! !man ed
ED(1) UNIX Programmer's Manual ED(1)
NAME
ed - text editor
SYNOPSIS
ed [ - ] [ -x ] [ name ]
DESCRIPTION
Ed is the standard text editor.
---
Computer Scientists love ed, not just because it comes first
alphabetically, but because it's the standard. Everyone else loves ed
because it's ED!
"Ed is the standard text editor."
And ed doesn't waste space on my Timex Sinclair. Just look:
-rwxr-xr-x 1 root 24 Oct 29 1929 /bin/ed
-rwxr-xr-t 4 root 1310720 Jan 1 1970 /usr/ucb/vi
-rwxr-xr-x 1 root 5.89824e37 Oct 22 1990 /usr/bin/emacs
Of course, on the system *I* administrate, vi is symlinked to ed.
Emacs has been replaced by a shell script which 1) Generates a syslog
message at level LOG_EMERG; 2) reduces the user's disk quota by 100K;
and 3) RUNS ED!!!!!!
"Ed is the standard text editor."
Let's look at a typical novice's session with the mighty ed:
golem> ed
?
help
?
?
?
quit
?
exit
?
bye
?
hello?
?
eat flaming death
?
^C
?
^C
?
^D
?
---
Note the consistent user interface and error reportage. Ed is
generous enough to flag errors, yet prudent enough not to overwhelm
the novice with verbosity.
"Ed is the standard text editor."
Ed, the greatest WYGIWYG editor of all.
ED IS THE TRUE PATH TO NIRVANA! ED HAS BEEN THE CHOICE OF EDUCATED
AND IGNORANT ALIKE FOR CENTURIES! ED WILL NOT CORRUPT YOUR PRECIOUS
BODILY FLUIDS!! ED IS THE STANDARD TEXT EDITOR! ED MAKES THE SUN
SHINE AND THE BIRDS SING AND THE GRASS GREEN!!
vimtutor
When I use an editor, I don't want eight extra KILOBYTES of worthless
help screens and cursor positioning code! I just want an EDitor!!
Not a "viitor". Not a "emacsitor". Those aren't even WORDS!!!! ED!
ED! ED IS THE STANDARD!!!
TEXT EDITOR.
When IBM, in its ever-present omnipotence, needed to base their
"edlin" on a UNIX standard, did they mimic vi? No. Emacs? Surely
you jest. They chose the most karmic editor of all. The standard.
Ed is for those who can *remember* what they are working on. If you
are an idiot, you should use Emacs. If you are an Emacs, you should
not be vi. If you use ED, you are on THE PATH TO REDEMPTION. THE
SO-CALLED "VISUAL" EDITORS HAVE BEEN PLACED HERE BY ED TO TEMPT THE
FAITHLESS. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!!
?
you just as easily posted the link
ed is actually not that hard to use
In all seriousness OP just start using it. Here are some basic primers so you don't get lost:
VIM modes
For the novice, vim has two modes which are useful; INSERT MODE, which can be entered using "i" or "a" (note that these two are different), and NORMAL MODE, which is entered by default and can be returned to from insert mode by pressing ESC.
QUITTING VIM
To quit vim, type :q while in normal mode. Note that if the file has been changed, you can either type :wq to save and exit, or :q! to exit without saving.
MOVING IN VIM
In normal mode, you can move around by using the hjkl keys.
As for the rest, it's up to you to learn OP.
vimtutor was already mentioned, thats all OP needs to start
I'm using it as an add-on for visual studio for with so I can use it better in my free elsewhere
For work*
Use emacs instead, it's better.
He wants a text editor, not a new OS
Emacs has the best built in text editor.
Evil mode? I'd believe it, but if user already has a OS and has vim installed, he doesn't need to install emacs
>millennial "programmers"
You read the manual.
In all seriousness emacs is actually a fantastic text editor and only people who haven't tried it hate it so much.
Not sure if i'd want to use VIM for c++ or c.
You might be better of using a proper IDE with vim key bindings etc.
Maybe. I'm not hard set against it, I do plan on learning it someday. There is just a special place in my computer for vim and it's derivatives
How to vim:
Open up vimtutor and follow along.
Once you are reasonably comfortable with moving around, and opening/closing documents, you should move on to the Vim User Manual, which is much better and more comprehensive, imho. That's available from :help. You can then do :only to maximize the help window (by closing any files you may have had open). Read the top portion so that you know how to navigate through help links (ctrl-] and then ctrl-t or ctrl-o).
And then, most importantly, either go a bit further down the starting :help page and follow the link to usr_01.txt or just do :h usr_01.txt.
Try typing: vim main.c
you want youcompleteme or clang complete for code completion and syntastic or something similar for linting
I'm not OP, but since the topic is vim + C/C++ I ask. Are there good C++ refactoring plugins for vim/neovim?
I mostly want it for renaming variables/functions across a whole project. Other refactoring features are a plus, but I don't find them necessary. (And no, search and replace is not refactoring.)
Is it normal that youcompleteme eats RAM like crazy? I didn't use it in a while though.
Not OP here.
What do you all think of NeoVim ?
Is it worth it ?
What does it bring to the table ?
The man page and the tutorial. At least for nvi, not sure about vim. nvi has a super easy tutorial.
And for C, that's easy: just like any other editor.
I like it, I use it in place of Vi(m) now. It cleans up a lot of the code base and includes things like asynchronous capabilities and it's, since it's moving away from vimscript, easier/cleaner to write plugins
Yes.