If someone sits down to properly learn all of vim, They become this uber powerful wizard of editing on any Linux distro that exists.
The problem is, I’ve only ever met a few people who are capable of using all of vim, I’ve been using it for 15 years and I still feel like I’m not quite worthy.
… and if you don’t like that horrible subversion of what a vi-user might expect to be the search feature*, there’s also Meta-G, which is slightly more similar to vi’s usage.
You can also nano +L[,C] filename on the command line replacing L and C with respective line and column number, which I believe is a feature borrowed from vi.
*The search feature is Ctrl-W for “where is”. Firefox users use this in the wrong window at their peril (it closes the current window). Find and replace is on Ctrl-\, which is even more of a subversion.
Firefox users use this in the wrong window at their peril (it closes the current window)
Not just firefox. Also chrome, and a lot of other programs that implement tabs like file managers and things like that. It’s one of those almost universal shortcuts, like Ctrl+F or Ctrl+L
Nano
Micro
Excuse me sir,
:wq
doesn’t work here.:x
Honestly, yes. Vim scary.
“:wq :q! :0 i esc…”
“Stop it Patrick, you’re scaring him”
echo "text file content goes here" >> myfile.txt
Is there a way to put it in a line on the test file? Like
How do I jump down to a particular line?
I prefer vim
If someone sits down to properly learn all of vim, They become this uber powerful wizard of editing on any Linux distro that exists.
The problem is, I’ve only ever met a few people who are capable of using all of vim, I’ve been using it for 15 years and I still feel like I’m not quite worthy.
Ctrl-
/
… and if you don’t like that horrible subversion of what a
vi
-user might expect to be the search feature*, there’s also Meta-G
, which is slightly more similar tovi
’s usage.You can also
nano +L[,C] filename
on the command line replacingL
andC
with respective line and column number, which I believe is a feature borrowed fromvi
.*The search feature is Ctrl-
W
for “where is”. Firefox users use this in the wrong window at their peril (it closes the current window). Find and replace is on Ctrl-\
, which is even more of a subversion.I can use
vi
, but still prefernano
.Not just firefox. Also chrome, and a lot of other programs that implement tabs like file managers and things like that. It’s one of those almost universal shortcuts, like Ctrl+F or Ctrl+L
Emacs