How to Exit Vim
81–90 of 409 posts
Re: How to Exit Vim
#82Fun read! My next bash exercise will be to try and understand some of these commands, quite a feat! greping the ps output would work with any program, right ? That was pretty cool. Killing it from emacs was def a good laugh ! They should add the script kiddie way: `sudo rm -rf /` ^^
Re: How to Exit Vim
#83The question is not "How" but "Why" you would want to ever do that in the first place;-) Many years ago I knew a university professor and students said about him he might leave uni occasionally but he sure never leaves Emacs. Some live in Emacs, some live in Vim.
I live in a different universe to you it seems. The only vim command I know is :q . Honestly, I tried several times over the decades and walked away with my head buzzing. PS: I don't live in emacs either! What I do love in both camps is how the explanations begin... "All you have to do is...[insert irrational (to non-vim/emacs users) command]" which makes me laugh every time. Love the article, which ironically proves…
Re: How to Exit Vim
#84The only vi command I know is :q! (That and the Rogue navigation keys.)
Re: How to Exit Vim
#85I do not like the grep -v grep pattern. I think the regexp trick should be prefered: :!ps axuw | grep [v]im | awk '{print $2}' | xargs kill -9 This can also be merged in the awk command: :!ps axuw | awk '/[v]im/{print $2}' | xargs kill -9
Ugh, ps|grep is unnecessary. Just use pgrep! Or even better, pkill -9 ;-)
Most other constructions can backfire in some unexpected way.
Re: How to Exit Vim
#86Re: How to Exit Vim
#87Re: How to Exit Vim
#88Re: How to Exit Vim
#89Oh dear. What are the chances this will eventually rank fairly highly on search engines - this is going to ruin the soul of the unsuspecting people who end up thinking that this is not satirical advice.
Re: How to Exit Vim
#90Earlier quoted context omitted.
I live in a different universe to you it seems. The only vim command I know is :q . Honestly, I tried several times over the decades and walked away with my head buzzing. PS: I don't live in emacs either! What I do love in both camps is how the explanations begin... "All you have to do is...[insert irrational (to non-vim/emacs users) command]" which makes me laugh every time. Love the article, which ironically proves…
Nitpick: 'q' is an ed command. ('ed' Being the underlying line-editor upon which the original vi was layered.)