It's worth noting that, after searching with ?, you can still move back and forth through occurrences using N and n, in the same way you would after using / for a search.
Vim Anti-Patterns
191–200 of 249 posts
Re: Vim Anti-Patterns
#192Re: Vim Anti-Patterns
#193Earlier quoted context omitted.
I tried EVIL mode, and it is amazing, but something just felt wrong using it inside Emacs. I wasn't using either Emacs or Vim I use emacs with evil, my approach for this is to use vim keybindings for everything related to text editing and emacs keybindings for everything else.(With just some minor exceptions). Unless you want to go the whole full exotic keyboards route and/or go crazy with remaps, emacs keys are just…
actually they aren't. At least for me. I mean, C-p I won't be pressing with one hand, I use both. I have pretty long slim fingers. I am touch typist too, so yeah sometimes my pink is used a little bit more than I would like, but I didn't feel pain or discomfort. Vim is far far better in that term.
You won't feel anything now, but 3-5 years down the road you might start to feel the strain.
Re: Vim Anti-Patterns
#194Earlier quoted context omitted.
Yeah, scripting a huge focus in emacs: they say it's a scripting environment that happens to have a text editor embedded in it. I don't know who "they" are, but they're quite perceptive. Some lisp experience (especially CL) can help with learning elisp, but it's entirely possible to do so without it. The process of learning emacs is roughly this: -Launch emacs -Run through the tutorial -Learn the shortcuts and gain g…
Haha, you described many things perfectly! But what drove me the most towards emacs despite being suitable for FP, huge amount of tweaking and customizability it provides. And it felt much better doing it in Elisp than Vimscript. Everything has it's good and bad sides, that is normal imho. But really nice comment! :)
Although emacs is no more suitable for FP than vi really, other than having better support for some of the functional languages, and for Scheme and CL (which aren't functional, but are often associated with FP, and are sometimes written in that style.
Re: Vim Anti-Patterns
#195Earlier quoted context omitted.
This is normally true, except that in order to be good at your job as a developer, you have to be good with your tools. It helps that vim is installed by default in every modern OS.
But in reality you'd constrain yourself to using Vim just because it is the lowest common denominator (i.e. it is available - vi - in Sun OS 5.2 & co). Otherwise, if it's a really modern OS, there's a plethora of modern, fast, cross-platform editors that follow CUA conventions.
These editors have sparked a holy war and a cult following not just because they're powerful, but because they're opinionated. They prefer efficiency and customization over familiarity.
I will freely admit that there's only only so many of those programs that I can handle in my life, but my text editor is one so frequently used that it's worth the investment.
Re: Vim Anti-Patterns
#196Earlier quoted context omitted.
Sounds like the options are the same. Note that it isn’t some kind of Vim standard that j shouldn’t be used repeatedly, just this author’s opinion. I do it all the time.
Does vim have the ability to jump to compiler errors, ctags integration, cscope integration, and integration with sourcecode parser based tooling?
Re: Vim Anti-Patterns
#197Re: Vim Anti-Patterns
#198I never got into the habit of using { and }. I just use H M L (high/medium/low) to get approximately in the right part of the screen, then go line-by-line. You can also do 5H or 10L to get "5 lines from the top" or "10 lines from the bottom". I make pretty good use of vim features, but I like to mix some sloppiness with the precision. I don't often count things before typing commands, because that breaks the second-n…
My favorite "secret" vim feature, that no one has mentioned yet: set scrolloff=999 That will keep the cursor in the middle of the window always, except at the start and end of the file. Before discovering that I used to `zz` after nearly every movement; that's all gone now, saving a ton of time and frustration.
While scanning a buffer for some pattern I'll quite often make a one-off keyboard macro that searches for a pattern and then invokes `C-l C-l`, it's very nice to then bounce on the "repeat keyboard macro" key and leave my eyes in the same place while the screen contents change under them.
Re: Vim Anti-Patterns
#199For me I set it up to not allow more than 2 steps in any given direction to remind me to use jumps instead.
Re: Vim Anti-Patterns
#200I was originally a die hard Emacs user, but I started to feel a bit of strain on the whole holding Ctrl+p, Ctrl+n etc. I was trying to find an editor/plugin that can reduce keystrokes or at least the strain. I ran across EVIL for Emacs which is just a Vim emulation and keybindings for Emacs users. Unfortunately I did not like it at first the entire hjkl felt awkward and all those modes - OMG. But after toying around…
I switched to Spacemacs a few months ago and didn't look back since. Its basically Emacs+Vim+Steroids+More. Just the leader key and layers alone are incredibly powerful concepts Spacemacs brings on top of Emacs/Vim :)
But I can highly recommend anyone to give it a try. It's a good example how you can split configs into smaller packages and do keybindings the right way.
I went back to neovim and re-wrote my vimrc from scratch. With mnemonic keybindings, layered config and all the likes