|
Thanks!
|
# ? Mar 29, 2016 22:50 |
|
|
# ? May 4, 2024 10:48 |
|
Ag is real loving good for project search. https://github.com/ggreer/the_silver_searcher It's fast as all get out, has a sensible cli. Just in case you want another option for project searching.
|
# ? Mar 30, 2016 00:41 |
|
I got most things working but rails.vim seems to be giving me trouble. here's the .vimrc i'm using, it's a hodgepodge because I just copy pasted stuff from around here and there. could what's in here be messing it up? code:
|
# ? Mar 30, 2016 00:44 |
|
tekz posted:Hey, I'm working on a rails app and thought I'd try out vim. Looking for a little help with getting it set up like an IDE. So far I've installed vim-rails, vim-ruby, Nerdtree and ctrlp. What plugins would you guys recommend for tab autocomplete, closing html tags, jumping to ends of blocks/methods/parentheses and search all files for text functionality? https://github.com/rking/ag.vim is good and if you install silver searcher on your computer you can use it with ctrlP and speed up those searches.
|
# ? Apr 2, 2016 05:03 |
|
Thanks everyone. Got a ctrlp question, it seems to not not show the file you currently have open. Is there a way to configure it so that it does?
|
# ? Jun 20, 2016 18:33 |
|
tekz posted:Thanks everyone. I think the option you want is g:ctrlp_match_current_file.
|
# ? Jun 21, 2016 02:02 |
|
Just learned about buffersaurus which solves a need I had recently (regex search across open buffers). Unfortunately <C-n> and <C-S-n> aren't distinguishable by vim, so I can't have the mapping for next/previous match I want.. Anyone know if there's a PR that resolves this, or if it's in neovim? It's pretty annoying that I can't do it, but I'm not willing to open the vim source to see if it's fixable. e: <leader>n isn't too bad I guess but still leper khan fucked around with this message at 16:31 on Aug 1, 2016 |
# ? Aug 1, 2016 16:28 |
|
:let mapleader=" " and then never feel bad about overusing <leader> maps ever again! Unrelated: I only found out about the (admittedly newish - 7.4.338+) :set breakindent recently and it's kind of the best if you're an anal-retentive nested-bullet-list abuser like I am. Signed, someone attempting to replace Evernote with vimwiki and surprised at how not-badly it's going so far. EDIT: also signed, someone starting to use vim-plug finally. Heck, here's my vimrc, maybe somebody will learn something: https://github.com/bitprophet/dotfiles/blob/1542a44843e6708fbf8fcabb1c9c2d1e28b2f90d/.vimrc bitprophet fucked around with this message at 21:40 on Aug 1, 2016 |
# ? Aug 1, 2016 21:37 |
|
I've recently re-installed Vim to give it another go (I'm a Vim novice). How do I have Vim autoload the plugins I have installed, via Vim Plug? I'm on Windows 10 with a fresh installation of Vim 8.0, I've used Vim Plug to install vim-perl. However, each time I open gVim I have to manually call :PlugStatus, then "L"oad vim-perl. My folder structure looks like: c:\users\bob\vimfiles\autoload\plug.vim c:\users\bob\.vim\plugged\vim-perl\ My c:\users\bob\.vimrc file looks like: code:
Hughmoris fucked around with this message at 15:19 on Oct 26, 2016 |
# ? Oct 26, 2016 15:17 |
|
Your do section for vim-perl maybe overriding default behaviour? I'm not familiar with Vim plug but maybe try removing that...
|
# ? Oct 26, 2016 17:32 |
|
Hughmoris posted:However, each time I open gVim I have to manually call :PlugStatus, then "L"oad vim-perl. If your concern is that PlugStatus shows that vim-perl isn't loaded after starting vim fresh, the "'for': 'perl'" part of that Plug line means to only load vim-perl once a perl file is opened.
|
# ? Oct 26, 2016 21:52 |
|
Maluco Marinero posted:Your do section for vim-perl maybe overriding default behaviour? I'm not familiar with Vim plug but maybe try removing that... I removed the "Do" section since I don't need those options right now. Civil Twilight posted:If your concern is that PlugStatus shows that vim-perl isn't loaded after starting vim fresh, the "'for': 'perl'" part of that Plug line means to only load vim-perl once a perl file is opened. I tested this and you're correct. When I open a perl file, the PlugStatus shows that vim-perl loads automatically. How do I get it to behave the same for a perl6 file? If I open a .p6 file, the PlugStatus shows that vim-perl is not loaded. This didn't seem to do anything: code:
|
# ? Oct 26, 2016 22:59 |
|
Hughmoris posted:How do I get it to behave the same for a perl6 file? Looks like what you want is: code:
|
# ? Oct 26, 2016 23:25 |
|
Civil Twilight posted:Looks like what you want is: That worked, thank you.
|
# ? Oct 26, 2016 23:37 |
|
I made the jump to vim from Atom last week and I like it so far. I'm using it with tmux to have all my server logs in one place with my text editor. I've just started running into some weird issue though, anyone seen anything like this? Steps: 1. I start vim in my root directory (`vim .`) 2. I open command-t (bound to leader-t) and start typing in a filename 3. I hit tab to switch to the list of partial matches 4. When I try to use the arrow keys to select a file from the list of partial matches, it looks like it's sending an insert command with capitals ABCD (depending on which arrow key I pressed) to the other tab 5. What do???? This does weird poo poo with whatever is in the other tab (for example, if I just start up vim it'll load NERDTree and sometimes will trigger it to recursively expand a directory which can sometimes just lock up my vim completely if I trigger it while node_modules or bower_components is under the cursor). It didn't do this until today when the only thing I did was add (and them remove) some comments from my .vimrc. Here's my .vimrc and .tmux.conf: https://raw.githubusercontent.com/pyi891/dotfiles/master/.vimrc https://raw.githubusercontent.com/pyi891/dotfiles/master/.tmux.conf edit: never mind, fixed it -- it's because I rebound ESC to close the command-t pane. Apparently pressing an arrow key is equivalent to pressing ESC-o-(ABCD).... canoshiz fucked around with this message at 03:55 on Jan 17, 2017 |
# ? Jan 17, 2017 02:28 |
Is there a non-bullshit vim plugin for Java? Something with autocomplete, quickdoc, and go-to def?
|
|
# ? Jan 24, 2017 03:37 |
|
Jo posted:Is there a non-bullshit vim plugin for Java? Something with autocomplete, quickdoc, and go-to def? http://eclim.org?
|
# ? Jan 24, 2017 03:47 |
I had dismissed it as poo poo. "If I wanted the bloat of Eclipse...". Maybe unfairly so? I'll give it some additional consideration.
|
|
# ? Jan 24, 2017 06:46 |
|
Jo posted:I had dismissed it as poo poo. "If I wanted the bloat of Eclipse...". Maybe unfairly so? I'll give it some additional consideration. The eclipse runs headless and you get most of the good from it with minimal bad. It's still java though..
|
# ? Jan 24, 2017 18:26 |
|
Which plugin manager should I be using today in 2017?
|
# ? Mar 3, 2017 09:58 |
|
Boris Galerkin posted:Which plugin manager should I be using today in 2017? I've used Pathogen, Vundle, and vim-plug. The latter seems the simplest, but they all pretty much work the same. It's nice not to have to deal with submodules (assuming you check your dotfiles into git), though.
|
# ? Mar 3, 2017 14:35 |
|
Submodules are perfectly fine
|
# ? Mar 3, 2017 15:06 |
|
They're manageable. I've realized that I don't actually care about locking every commit of my dotfiles to a specific commit of every vim plugin, though. As rare as it happens, I'm perfectly fine with a fresh dotfiles checkout just pulling the latest versions. So if that's important to you, don't use vim-plug.
|
# ? Mar 3, 2017 16:05 |
|
good jovi posted:I've used Pathogen, Vundle, and vim-plug. The latter seems the simplest, but they all pretty much work the same. It's nice not to have to deal with submodules (assuming you check your dotfiles into git), though. Cool thanks for that. I've been using vim forever now, but haven't ever bothered or messed around with plugins before. I dunno why, but it probably has something to do with my vimrc being a confusing mess from all the random poo poo I've taken from various other vimrc files that I don't really understand. Anyway I just compiled neovim to give it a shot and downloaded vim-plug with it. Figured I had nothing to lose especially since neovim uses a different vimrc by default. Anyway vim-plug is pretty awesome. I can't believe I've been doing all this poo poo like managing color schemes and dropping poo poo into ~/.vim/whatever manually for so long. I can't get youcompleteme to work though. I installed it with vim-plug just by adding the "Plug /repo/link" line to my vimrc file and installed it, it says youcompleteme is installed, but I don't get any autocompletion. I've only tried python files as that's all I have available right now but it just doesn't work. Nothing pops up with suggestions like the gif shows on their git repo. Their git repo also has an entire treatise on installing it but I thought all I had to do with add the line to my vimrc if I'm using vim-plug. It's not really clear but I must be missing something since it's not working. e: CtrlP is great. I've been using http://vimawesome.com/ to look for plugins. Are there any actual "plugin review websites" out there? I wouldn't be surprised if there wasn't since I imagine the audience isn't that big but I figured I'd ask. Boris Galerkin fucked around with this message at 00:30 on Mar 19, 2017 |
# ? Mar 19, 2017 00:27 |
|
Boris Galerkin posted:I can't get youcompleteme to work though. I installed it with vim-plug just by adding the "Plug /repo/link" line to my vimrc file and installed it, it says youcompleteme is installed, but I don't get any autocompletion. I've only tried python files as that's all I have available right now but it just doesn't work. Nothing pops up with suggestions like the gif shows on their git repo. Their git repo also has an entire treatise on installing it but I thought all I had to do with add the line to my vimrc if I'm using vim-plug. It's not really clear but I must be missing something since it's not working. Did you go into the YCM checkout and compile it? That's also something you can set up as a post-pull hook for vim-plug.
|
# ? Mar 19, 2017 01:24 |
|
good jovi posted:Did you go into the YCM checkout and compile it? That's also something you can set up as a post-pull hook for vim-plug. Nope I didn't do that. I thought vim plug would do it all for me. Apparently the vim plug website says to append a dictionary thing after the youcompleteme plugin. I did that and now it's working.
|
# ? Mar 19, 2017 11:50 |
|
Is there any reason to switch over to Neovim if you're just a simple user? I can't imagine there would be some killer plugin that's Neovim only.
|
# ? Mar 30, 2017 02:30 |
|
Not really
|
# ? Mar 30, 2017 03:46 |
|
qsvui posted:Is there any reason to switch over to Neovim if you're just a simple user? I can't imagine there would be some killer plugin that's Neovim only. I tried it for a bit and it didn't really offer me anything more than regular vim. I use neomake(like syntastic) with vim 8 and it works all async like, so the main selling point of neovim is already in vim now. Also there are no good gui clients on the level of macvim/gvim.
|
# ? Mar 30, 2017 04:56 |
|
Neovim has terminal mode, which is cool, but still kind of janky. NeoMake was the reason I switched, and Ale kind of invalidates that now.
|
# ? Mar 30, 2017 14:27 |
|
Having a terminal in your editor is dumb
|
# ? Mar 30, 2017 15:47 |
|
xtal posted:Having a terminal in your editor is dumb Mmmm yes. Tmux takes care of this for me. It's drat good.
|
# ? Mar 31, 2017 01:14 |
|
Anybody using neovim and/or SpaceVim? I'm very intrigued, quickly tried setting both up on Windows but the SpaceVim configuration is not being loaded from "~\.SpaceVim.d\init.vim" which is supposedly the place to put your configuration. Also docs present this great concept of "unite" but I still don't really understand what it is after reading the docs... Also interested in general opinions/thoughts about neovim or SpaceVim on any platform
|
# ? Apr 3, 2017 12:23 |
|
A while back I read an article that had like a number of steps to Vim mastery or something like that. The first step was to disable the arrow keys. I remember thinking at the time that it all seemed like really sound advice, however I can't seem to dig the article up. Can someone help me out?
|
# ? Jun 1, 2017 12:52 |
|
bollig posted:A while back I read an article that had like a number of steps to Vim mastery or something like that. The first step was to disable the arrow keys. I remember thinking at the time that it all seemed like really sound advice, however I can't seem to dig the article up. Can someone help me out? Dunno if this is the one, but this book suggests doing that, and it's a good read to boot! http://learnvimscriptthehardway.stevelosh.com/
|
# ? Jun 1, 2017 18:15 |
|
Lumpy posted:Dunno if this is the one, but this book suggests doing that, and it's a good read to boot! YEah this looks cool thanks
|
# ? Jun 2, 2017 21:58 |
|
My arrow keys are Fn+HJKL so lol
|
# ? Jun 2, 2017 22:15 |
|
|
# ? May 4, 2024 10:48 |
|
xtal posted:My arrow keys are Fn+HJKL so lol I bought a 60% as well and it is the most terrible thing I've ever typed on. Nothing to do with vim but it's just so awkward.
|
# ? Jun 3, 2017 06:42 |