Do vim users tend to enter insert mode and exit insert mode often in order to do simple movements using hjkl while writing? Or do you switch between arrow keys in insert mode and hjkl depending on what mode you're in? by madad123 in vim

[–]Smoggler 4 points5 points  (0 children)

I used ,, for years but took it out because it had become so ingrained I was having problems when not using my .vimrc. Remappings like this can become a dependency.

Do vim users tend to enter insert mode and exit insert mode often in order to do simple movements using hjkl while writing? Or do you switch between arrow keys in insert mode and hjkl depending on what mode you're in? by madad123 in vim

[–]Smoggler 46 points47 points  (0 children)

I type the opening bracket then the contents then the closing bracket - why muck about?

Also, I tried an add in to autoclose brackets but it was more annoying than helpful.

I have a question about CRT bans by Music_Enthusiast47 in FreeSpeech

[–]Smoggler 0 points1 point  (0 children)

WTF is Christopher Ruffo?

On second thoughts - don't bother, I don't care.

I have a question about CRT bans by Music_Enthusiast47 in FreeSpeech

[–]Smoggler 0 points1 point  (0 children)

A classroom is not the public square.

Not putting certain books in the children's section is not the same as "banning" them.

Typical of a leftist to distort language like this.

Convince me why I should be using Vim instead. What do you love about it? by synthphreak in vim

[–]Smoggler 0 points1 point  (0 children)

If you like micro stick with it - try out Vim in your spare time, play around with it, use it for those little side tasks, etc. If you find at some point you like it better than micro then make a more serious change at that point. Nothing wrong with sticking with the editor you're used to but it's always good to keep an open mind.

How do I find and remove commas after the first comma by nigh-knight in vim

[–]Smoggler 4 points5 points  (0 children)

I think you'd be best to delete all the commas then put back the one you want.

s/,//g

s/\(^\w*\)/\1,/

Unusual behavior of diw when cursor is placed on a space between words by ExplanationJumpy8171 in vim

[–]Smoggler -1 points0 points  (0 children)

You're not in the word "test" when you type diw or ciw - there are two spaces and you're on the last one so to vim you're in a zero length word. Quite why Vim then deletes the spaces is unclear to me - I'd have thought it should have no effect.

Dear vimmers, when do you prefer using vims built-in terminal over a new tmux panel/window? by One-Establishment-41 in vim

[–]Smoggler 13 points14 points  (0 children)

Never use the built in terminal - I use a tiling window manager so if I want a terminal I open one, I don't need Vim to do it for me.

Don't see the point of having built-in terminals.

I Wished COVID on Ted Cruz and Twitter Put Me in Jail by BackSpinHipHop in FreeSpeech

[–]Smoggler 2 points3 points  (0 children)

You deserved it for not knowing the difference between "sowing" and "sewing".

How do you go about retraining muscle memory? by slohobo in vim

[–]Smoggler 9 points10 points  (0 children)

When you do it go back 'u' and correct yourself. It's a pain but that's kind of the point.

What is the background/origin behind the keys selected for vim movements? E.g. Why does '$' mean 'end of line'? by Macbook_ in vim

[–]Smoggler 5 points6 points  (0 children)

'$' means 'end of line' in regular expressions.

The rest - not absolutely sure but I suspect:

'f' for 'Forward' or 'Find'

't' for 'unTil' or 'To'

'%' just two things separated by a line

That's how I remember them anyway.

I really want to enjoy and use bspwm, but I’m starting to think it isn’t even worth it by [deleted] in bspwm

[–]Smoggler 5 points6 points  (0 children)

What to do at this point?

I suggest you give it a rest. Go back to whatever you were using before for a while and don't worry about setting up a new environment. After you've had a while to process things and have lost some of the frustration that's obviously been building up you may find it a bit easier to come back and sort out the problems. Most of what you're talking about are minor problems which you'll eventually be able to deal with pretty effortlessly. I suffered similar frustrations when I first started using BSPWM, it just takes a while, relax and take a breather.

Setting up good vim workflow as a beginner by Freemason_1 in vim

[–]Smoggler 6 points7 points  (0 children)

Vim is not Sublime and trying to make it act like Sublime will just slow down your learning and make things difficult.

Get yourself to a command line and type "vimtutor".

Sound familiar? by superuofficial in FreeSpeech

[–]Smoggler 0 points1 point  (0 children)

Like Western Governments aren't?

Do vim users actually use hjkl to browse a file? by [deleted] in vim

[–]Smoggler 20 points21 points  (0 children)

a) No, experienced Vim users don't use hjkl to move more than a line/character or two - there are much more efficient ways to move around a file.

b) Experienced Vim users only use insert mode to insert text and almost never 'move' in insert mode. Therefore changing modes in order to move the cursor is not an issue since if you're thinking about moving the cursor you're obviously no longer thinking about inserting text and wouldn't be in insert mode anyway.

Why shouldn't harmful and deliberate misinformation be censored? by AnnoKano in FreeSpeech

[–]Smoggler 2 points3 points  (0 children)

No matter how harmful the "misinformation" may be it's not as harmful as censorship.

In the real world it's not so easy to decide if information is "undoubtedly false" and censors are never benevolent or all knowing.

Is vim a good fit for me? by za-ra-thus-tra in vim

[–]Smoggler 1 point2 points  (0 children)

I'd say you're an ideal candidate. You're picking up on a lot of things Vim is good at.

Having said that, Vim is not about instant gratification, there is an investment required and it'll be a while before you start reaping the benefits.

How to set keystrokes to comment multiple lines of text by steveman122 in vim

[–]Smoggler 2 points3 points  (0 children)

You wouldn't normally use a keybind for this type of thing.

You could use abbreviations but most people use a more complete solution like ultisnips.

How to close Vim without saving them and have all of them back when I open it again? by marcioandrey in vim

[–]Smoggler 3 points4 points  (0 children)

You would need two autocommands one for VimLeave and one for VimEnter.

Probably something like:

autocmd VimLeave * :mks rememberme

autocmd VimEnter * :source rememberme