Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
albi11687yDefault Vim is never the best experience, that's why you have a .vimrc in your home to make it work the way you want it
-
@spoiledgoods if you haven't then try this : Write/manually indent the first few lines of your code with the style of indentation you want. Then go to command mode(Press esc) the type this : "gg=G" for a starting to ending indentation.
-
@Phippsaurus Don't suggest set autoindent. It fucks up python code like anything. Happened to me once..
-
GeaRSiX6427ylol
1) :set tabstop=4 shiftwidth=4 expandtab
2) v
3) move cursor up/down until you've selected your text block
4) >
You'll only think it's more effort until you realise how much you love terminal like a real wizard. -
deodexed5737yIn my opinion vim should only be used when no ide is available, for example: cuda
You'll only save time if you're working on a single-file-small-project, otherwise might as well use an ide
Related Rants
started using vim just for shits and I gotta say it's been a massive pain in the ass.
wanted to indent like 7 blocks of code at once. 20 minutes later I've tried several methods, none of which indent it 4 spaces like the rest of my file.
there's like 15 different ways to indent shit. Jesus Christ.
then I had to sift through countless people in heated vim debates on SO.
I am not worthy
rant
vim
cancer