A Good Vimrc
dougblack.io
A Good Vimrc
1–10 of 178 posts
Re: A Good Vimrc
#2Re: A Good Vimrc
#3Let me also recommend some of my favorites:
set matchpairs+= " match as well
set ignorecase " case-insensitive search
set smartcase " upper-case sensitive search
If you already use ctrlp, you might also cpsm [0], a better matcher for it and ctrlp-funky [1] which allows you to go to methods and other symbols in a ctrlp style. [0] https://github.com/nixprime/cpsm
[1] https://github.com/tacahiroy/ctrlp-funkyRe: A Good Vimrc
#4Vim is by default intended to be compatible with some historical implementation of vi. In my opinion, it doesn't make any sense any more, but I guess there is some reasoning behind the decision.
Re: A Good Vimrc
#5For those just getting started or using vim only occasionally, Tim Pope's vim-sensible is a good, conservative starting point. It just sets some reasonable base configs instead of Vim's crazy default settings. No custom keybindings or fancy plugins included. Vim is by default intended to be compatible with some historical implementation of vi. In my opinion, it doesn't make any sense any more, but I guess there is so…
Re: A Good Vimrc
#6Re: A Good Vimrc
#7Space seems like the perfect leader key. Mapping , means you lose prev-finding for some searches (f).
Re: A Good Vimrc
#8For those just getting started or using vim only occasionally, Tim Pope's vim-sensible is a good, conservative starting point. It just sets some reasonable base configs instead of Vim's crazy default settings. No custom keybindings or fancy plugins included. Vim is by default intended to be compatible with some historical implementation of vi. In my opinion, it doesn't make any sense any more, but I guess there is so…
The problem with vim is that you can't use it effectively unless you know almost everything that there is to know about it.
When it comes to vim, you're either a novice or an expert, there is no middle-ground.
Re: A Good Vimrc
#9Re: A Good Vimrc
#10"I like it, since it means my source code looks the same on every machine."
That reason just makes no sense at all.
There's only one reason for configuring tabs to be anything but tabs, and that's because someone else set the standard. So if you're editing python or bash, and you don't feel like being a rebel with a cause, you set expand tab.
But obviously you shouldn't be doing that manually every time you open a file, so you should configure Vim to detect what's going on.
You can do that by adding the `ciaranm/detectindent` plugin and then setting the following line:
autocmd BufReadPost * :DetectIndent
To detect the indentation any time you open a file. That at least for me makes the headache go away most of the time.