|
Vim thread, awesome! What are some vim plugins that completely revolutionized your productivity? I'd love to know what you swear by. For me, the big language-agnostic ones were:
In other news, tpope is God. I feel like I owe this guy a few thousands of hours of productivity. Btw, OP, you really need to add Practical Vim to mandatory readings for anybody serious about vim. It's a fantastic resource written by a guy who knows his stuff. It's an entry-to-intermediate level book that should cover 95% of use cases out there. DreadCthulhu fucked around with this message at 19:08 on Jun 4, 2013 |
# ¿ Jun 4, 2013 19:05 |
|
|
# ¿ Apr 27, 2024 08:27 |
|
Dicky B posted:I switched from Command-T to ctrlp for a while because I read somewhere that it's apparently faster, but whenever I try to use it in a large project it doesn't work properly and some files just don't show up at all. I've had 0 problems with it in my experience, both as far as speed and functionality is concerned. I actually had the opposite experience with Command-T, it was super slow for me. Go figure. With regards to files disappearing, watch out for newly added files to the folder tree, they don't automatically get added to the cache. Press F5 from within the ctrlp buffer to refresh the cache.
|
# ¿ Jun 4, 2013 19:18 |
|
What do you guys use for something like renaming a ubiquitous variable across an entire project? I know there's a way of telling vim to do a substitute with confirmation across all the open buffers. Would you use that or perhaps the shell instead?
|
# ¿ Jun 4, 2013 19:29 |
|
astr0man posted:Oh yeah, if any of you feel like owning a really keyboard with vim commands instead of letters on it you can get the same one as me from wasd: http://www.wasdkeyboards.com/index.php/wasd-v1-custom-keyboard.html?kt=1&k=1&s=7cdc41a18e757810db84d26f5875626f No Topre? I'm outta here :P
|
# ¿ Jun 4, 2013 20:17 |
|
Civil Twilight posted:I use the Tomorrow Night color scheme just about everywhere I can. Hmm that looks nice. I'm pretty used to earendel now though, but I gotta check yours out.
|
# ¿ Jun 6, 2013 04:50 |
|
What kind of text wrapping should I enable for markdown documents? I have the 80 characters cap for code, but it seems like it might be not ideal for a document like an essay. I'm all over the place with nowrap, textwrap, wrapmargin etc..
|
# ¿ Jun 7, 2013 00:49 |
|
I guess colorschemes are extremely personal. I tried all the ones you guys shared here and I still can't find as good of a match as earendel. I like the mix of not-too-Christmasey colors, not too dark so I can actually see the text, and an overall warm feel to it thanks to the turquoise, the cinnamon browns, the pinks and grass greens for comments. Some of the themes are ridiculous, comments so dark grey that I have to spend 2-3 seconds adjusting my eyes so I can read them. What the christ..
|
# ¿ Jun 8, 2013 01:49 |
|
Cat Plus Plus posted:https://code.google.com/p/vimcolorschemetest is pretty helpful when picking a colour scheme. drat, that's a great resource. Thanks.
|
# ¿ Jun 9, 2013 00:55 |
|
LaTex Fetish posted:In case you guys didn't realize, or forgot, 7.3 has relative line numbering. Argh fine, I'll finally give this a longer try. I was aware of this, but was too lazy to get used to it. Thanks for nudging again. EDIT: actually, this doesn't seem to work if I open a file with gvim and then open another file with ctrl-p. I have to create a new split for that to kick in. Does WinEnter not trigger with ctrl-p? Actually it might be just me with a plugin conflict somewhere overriding relativenumber. I managed to force it to work as intended with au BufNewFile, BufRead * setl , but I feel like this is the nuclear option that I shouldn't be exercising. DreadCthulhu fucked around with this message at 01:03 on Jun 18, 2013 |
# ¿ Jun 17, 2013 20:38 |
|
Jabor posted:You should use BufEnter if you want to do something when you enter a different buffer. WinEnter, as the name implies, only fires when you switch windows. That's good, sounds simpler. Thanks!
|
# ¿ Jun 18, 2013 02:18 |
|
Funnehman posted:e: Also really a big fan of nerdcommenter and once you get used to the kind of weird way vim-surround works, it's pretty fantastic, especially if you have to do some HTML or something. Any idea how that compares to our Messiah tpope's vim-commentary? I've been using it very successfully for years, but would love to find out if there's something out there that's 10x better. Unrelated note: is there a popular plugin out there for tidying a buffer in vim? For example, sometime I'll paste some optimized CSS into a buffer and will want to make it readable. Is there a simple and properly working tool for this in vim? DreadCthulhu fucked around with this message at 20:13 on Jun 24, 2013 |
# ¿ Jun 24, 2013 20:08 |
|
Just stumbled upon the native option to turn on column and line highlighting. It's super obnoxious, I'm finally in full Christmas tree mode.
|
# ¿ Jul 19, 2013 03:05 |
|
Anybody here got experience with writing syntax highlighting rules in vim? Do you know if when you use the "region" rule, whatever is matched by start= can no longer be highlighted by the rest of the rules, especially if you use hs=e? I'm probably brainfarting super hard here, but say I have:code:
code:
The second and third regex do the highlighting successfully, BUT then defn loses its original special keyword syntax highlighting which was there before, thus not really doing its job. Is there a way to make both happen or am I stuck?
|
# ¿ Jul 21, 2013 09:13 |
|
Need a recommendation for convenient bindings for quickfix list commands. Mostly open, close, next, previous etc. What do you guys use? Been playing with Ack.vim + AG and would love to make that navigation snappier. Experimenting with the following: code:
DreadCthulhu fucked around with this message at 01:56 on Aug 18, 2013 |
# ¿ Aug 18, 2013 01:34 |
|
Oh man that's got a LOT of stuff in it, I'll have to do some cherry picking.
|
# ¿ Aug 20, 2013 21:35 |
|
Just wanted to re-emphasize how amazing that PragProg book for Vim is. If you don't know where to start or where to go, seriously consider checking it out. Just finished reading it after over a year, and I still need to go back and review a lot of its tricks.
|
# ¿ Aug 29, 2013 00:34 |
|
|
# ¿ Apr 27, 2024 08:27 |
|
Something totally awesome I just discovered, not sure how I lived without this: Want to work on two or more repos in one vim? Open a new tab with :tabnew, :lcd %repo_path% and now all the windows spawned in that new tab will inherit the same :pwd and you can CTRL-P your worries away. For bonus points, if you already have a tab with a bunch of open windows whose pwd is all over the place, just :windo lcd %repo_path% and you're golden.
|
# ¿ Sep 15, 2013 04:59 |