|
gVim is just a window wrapper around vim. The thing with vim in Windows is that there are a few default shortcuts that are different due to global Windows shortcuts (most notably ctrl+c and ctrl+v). :help explains the differences.
|
# ? Jun 22, 2015 04:34 |
|
|
# ? May 4, 2024 12:56 |
|
Clark Nova posted:Not as far as I know - gVim's GUI is pretty minimal, and can be turned completely off if it bugs you. I don't think there's a way to get hi-color mode (i.e. nice, pretty colorschemes) to work in the standard windows console version of vim. I think you may be able to get that working in cygwin or mingw but I've never tried because Anyway, vim and gvim will both use the same config file, so you can switch back and forth effortlessly. Marsol0 posted:gVim is just a window wrapper around vim. The thing with vim in Windows is that there are a few default shortcuts that are different due to global Windows shortcuts (most notably ctrl+c and ctrl+v). :help explains the differences. Thanks. I fired Vim up for the first time at work today, it's going to take some getting used to but I'm liking it so far. Hughmoris fucked around with this message at 00:37 on Jun 23, 2015 |
# ? Jun 23, 2015 00:34 |
|
Hughmoris posted:Thanks. I fired Vim up for the first time at work today, it's going to take some getting used to but I'm liking it so far. vimtutor is your friend
|
# ? Jun 23, 2015 00:45 |
|
Hughmoris posted:Thanks. I fired Vim up for the first time at work today, it's going to take some getting used to but I'm liking it so far. The good news is that after a couple weeks, you'll be super productive with it, and all the suffering through the learning curve will be worth it. That or you'll have Stockholm Syndrome and you'll keep telling yourself that you're much more productive....
|
# ? Jun 23, 2015 02:26 |
|
If I vim edit a file I'm already editing, is there a way to tell the old vim session to close and the new vim session to load in whatever changes the old session had made? So the workflow is:
I just love opening new xterms and this habit will never change.
|
# ? Jun 23, 2015 04:18 |
|
You could try something like what this guy does. https://www.youtube.com/watch?v=aHm36-na4-4&t=720s (start at 12m, watch for 4-5 minutes). Here's hit github with his plugins: https://github.com/thoughtstream/Damian-Conway-s-Vim-Setup
|
# ? Jun 24, 2015 13:09 |
|
Thanks, that's pretty close to what I'm looking for. I'll have to figure out a way to introspect all gnome-terminal inactive tab names since they're not visible to wmctrl, but I have alternatives now.
|
# ? Jun 25, 2015 02:11 |
|
I'm running Windows 7. Is there a way to have Vim launch " :! " commands in powershell, instead of the command prompt? For instance, if I executedcode:
|
# ? Sep 14, 2015 05:38 |
Hughmoris posted:I'm running Windows 7. Is there a way to have Vim launch " :! " commands in powershell, instead of the command prompt? For instance, if I executed According to this site the relevant commands are code:
|
|
# ? Sep 14, 2015 06:32 |
|
VikingofRock posted:According to this site the relevant commands are Thanks. I tried that first but it's not working for me, but I might be doing it wrong. I placed those two lines in my _vimrc file, and when I run the command, it still loads it in the black command prompt window. code:
|
# ? Sep 14, 2015 06:38 |
|
Is there a simple way to copy all regex matches in a file, and paste it into a new buffer? If not, maybe highlight all matches and delete anything that is not a match?
|
# ? Sep 17, 2015 03:33 |
|
Hughmoris posted:Is there a simple way to copy all regex matches in a file, and paste it into a new buffer? If not, maybe highlight all matches and delete anything that is not a match? You can use :g/regex/d to delete lines that match a regex, like so: code:
code:
|
# ? Sep 17, 2015 04:23 |
Hughmoris posted:Is there a simple way to copy all regex matches in a file, and paste it into a new buffer? If not, maybe highlight all matches and delete anything that is not a match? For the first: :g/regex/y A will yank all matching lines into register a. Then you switch to your new buffer and hit :p"a to paste them. If you mess this up, hit qaq to clear register a before trying again. For the second: :v/regex/d will delete all non-matching lines.
|
|
# ? Sep 17, 2015 19:29 |
|
I gathered they meant that only the parts that match would end up in the file. So given \(cat\|dog\) as the regex and code:
code:
code:
|
# ? Sep 17, 2015 19:48 |
Found an answer on stack exchange. Apparently what we want is this:code:
|
|
# ? Sep 17, 2015 21:29 |
|
Thanks for the ideas. Yeah, I was hoping to grab just the captures and delete everything else. So, the starting text would be:code:
code:
Hughmoris fucked around with this message at 19:32 on Sep 19, 2015 |
# ? Sep 19, 2015 19:25 |
Hughmoris posted:Thanks for the ideas. Yeah, I was hoping to grab just the captures and delete everything else. So, the starting text would be: Gotcha. This worked for me: code:
|
|
# ? Sep 19, 2015 21:52 |
|
is NeoVim a thing worth using? I move frequently between editing with a full IDE (IntelliJ) at work to editing with just vim. IntelliJ annoys the poo poo out of me by how clunky and unusable it can be. Vim annoys the poo poo out of me by how little it offers out of the gate and how painful or ghetto the configuration is to get it to have the bells and whistles.
|
# ? Sep 25, 2015 07:14 |
|
sink posted:is NeoVim a thing worth using? I don't[1] want to be that guy in a Vim thread but you might want to check out Emacs since it comes out of the gate with more of the bells and whistles you might be looking for. Specifically Spacemacs[2], which is Emacs configured using a Vim emulation mode[3] and which uses the space key as leader (hence the name). I've not used Spacemacs but I have been using Evil[3] for a couple of years now and I switch between Emacs and Vim on my machine easily. There's few complaints about the Vim emulation out there since it is pretty complete. (I started using Vi somewhere in the late 1980's, switched to Emacs in the late 1990's and been using Evil for a good while now. For me, it's an ideal combination.) [1] Well, actually I do. [2] https://github.com/syl20bnr/spacemacs [3] https://bitbucket.org/lyro/evil/wiki/Home
|
# ? Sep 25, 2015 08:30 |
|
aerique posted:I don't[1] want to be that guy in a Vim thread but you might want to check out Emacs since it comes out of the gate with more of the bells and whistles you might be looking for. Specifically Spacemacs[2], which is Emacs configured using a Vim emulation mode[3] and which uses the space key as leader (hence the name). burn him! But yeah seriously evil/spacemacs sounds like an ideal kind of thing (though I've used neither). tbh, though, I don't think it's difficult at all getting a new set up. neovim is solid (thought I have had a hard crash and ctrl-h is broken) and there are some awesome plugin managers. I am excited for the day when nvim is mainstream and it's used as basically nothing more than the editing widget in IDEs.
|
# ? Sep 26, 2015 09:55 |
|
Hughmoris posted:Thanks for the ideas. Yeah, I was hoping to grab just the captures and delete everything else. So, the starting text would be: A week late and a buck short, but wouldn't code:
|
# ? Sep 28, 2015 13:58 |
|
Solumin posted:A week late and a buck short, but wouldn't Thanks! I'm really enjoying learning Vim, and discovering how much it can do. I had an extremely messy text file, with tons of duplicates and lots of noise. Used some :%s to remove the noise, and was left with lots of duplicates. I was thinking I would have to use Perl or Python to remove the duplicates, but it turns out that Vim has :sort u. That removed all the duplicates, and I had the result I wanted. Good stuff.
|
# ? Oct 25, 2015 04:18 |
|
I'm also new to Vim and trying to get used to working with buffers. Let's say I have a tab split to show two files, A and B. I'm working on A and type :tag some_function_in_B. This makes the view that was showing A to now show B, so B is shown in both views. How can I make it just switch to the other view that's already displaying B? Or is this another case of "That's not how you're supposed to Vim!"?
|
# ? Nov 2, 2015 18:24 |
|
Looks like switchbuf may be what you want.
|
# ? Nov 6, 2015 23:40 |
|
Why is there a changelog file type in vim? Does anyone use this?
|
# ? Nov 23, 2015 03:16 |
|
It makes Debian changelogs pretty. Or it did, now those load as the debchangelog filetype.
|
# ? Nov 23, 2015 03:29 |
|
Do windows have buffer histories that you can access? I know that pressing CTRL-6 will show the last buffer that was being edited in that window, but is there a way to go further back?
|
# ? Jan 14, 2016 07:22 |
|
gg=G works great on html files, except for inline javascript. It just pushes anything inside the <script> tag all the way to the left:code:
|
# ? Jan 29, 2016 14:56 |
|
So I decided to work from home today to avoid meetings and get some things finished up. And omnisharp-vim is saying that GoToDefinition et al aren't editor commands.
|
# ? Feb 17, 2016 20:42 |
|
Did your vimrc get messed up or something?
|
# ? Feb 18, 2016 05:21 |
|
qsvui posted:Did your vimrc get messed up or something? Yeah, I figured it out. I decided to update my vimrc but never bothered to make sure anything I did for windows got carried over.
|
# ? Feb 18, 2016 17:56 |
|
I'm starting my foray into linux and programming today after thinking about it on and off for a few years and would like to dink around in Vim and python while learning Linux. Instead of frying my os's and storage drives due to trivial mistakes/typos and never getting my AMD card or sound working when trying to install Gentoo like an idiot for a few days, I'd like to know if there is a persistent programmer friendly USB based Linux that has vim that I can experiment on. I don't need all the bells and whistles and I know the bare-basics of command line. I'm curious if I really can get to a point where I do pretty much everything from command line. I just want to be able to listen to some music or something while going through my python tutorials and books, I downloaded those free MIT comp science courses as well. SliTaz didn't support my keyboard for some reason, I chose US non accented IDK. I'm know a bit about systemrescuecd and am currently running calculate linux desktop xfce off a 4gb flash drive. I'm going to do my Practical Vim and Learn Python The Hard Way Exercises after I finish vimtutor, I also tried that vim adventure, but I'm not going to pay for it. I tried using Levinux-master in windows, and while I appreciate it for what it is, I'd rather use a real operating system if possible. Really anything would work I guess, but It would be cool to have some persistence so I can focus on the exercises and also so I can get an idea of the Linux experience that I enjoy for later. Any other advice for a new guy like me? I guess I could have posted this somewhere else probably, but I'm planning on learning the VIM way on my own for awhile and maybe taking a coding bootcamp after a year or two as a backup or new career. I'm poised to make lower end programming wages anyway after completing my 3 year Union Ironworker apprenticeship, but that will break my body down possibly. Quaint Quail Quilt fucked around with this message at 07:41 on Feb 24, 2016 |
# ? Feb 24, 2016 07:08 |
|
galahan posted:I'm starting my foray into linux and programming today after thinking about it on and off for a few years and would like to dink around in VIM and python while learning Linux. quote:Instead of frying my os's and storage drives due to trivial mistakes/typos and never getting my AMD card or sound working when trying to install Gentoo like an idiot for a few days, I'd like to know if there is a persistent programmer friendly USB based Linux that has vim that I can experiment on. I don't need all the bells and whistles and I know the bare-basics of command line. I'm curious if I really can get to a point where I do pretty much everything from command line. If you would rather boot from a flash drive, it might be worth finding a second flash drive to store files on. Pretty much any variety of Linux should be programmer friendly and they should all have vim. I would recommend using one of the more popular Linux distributions because they have better hardware support, more extensive documentation, and more people who will be able to help you. Debian and its derivatives (Ubuntu, Xubuntu, Linux Mint, etc.) are all good choices. Another option, if you want to get really proficient with the command line, is to run a server yourself and connect to it with ssh. Amazon will host a small server for you for free for a year under their free tier: https://aws.amazon.com/ec2/ You can put an ssh client on a flash drive and connect from anywhere. This might be a good option after you have learned the basics. quote:Any other advice for a new guy like me? I guess I could have posted this somewhere else probably, but I'm planning on learning the VIM way on my own for awhile and maybe taking a coding bootcamp after a year or two as a backup or new career. I'm poised to make lower end programming wages anyway after completing my 3 year Union Ironworker apprenticeship, but that will break my body down possibly.
|
# ? Feb 24, 2016 08:42 |
|
You could try using pythonanywhere too.
|
# ? Feb 24, 2016 09:52 |
|
Thanks! I Think porteus would serve my needs in the meantime. I wasn't planning on using emulation until I get my next machine and Vga passthrough matures a little bit. I speed read and have picked up a lot about linux and a fuzz about programming (osmosis), I'll be sure to follow cobol now instead of just joke yosps. I think I read the entirety of linux on desktop thread for example. Quaint Quail Quilt fucked around with this message at 10:07 on Feb 24, 2016 |
# ? Feb 24, 2016 09:58 |
|
sharktamer posted:You could try using pythonanywhere too. Noted, It's good to know things exist for later. Vim is probably my first step though, I'll even have a new way to play rougelikes and muds now, hopefully be doing more productive things in the future though. I suppose I could get another SSD, I'm just scared of grep and fuzzy on partitioning linux and such for dual boot, virtualization will be extremely cool once vga passthrough becomes ubiquitous.
|
# ? Feb 24, 2016 10:07 |
install vagrant, its the easiest way if you just wanna play with VM linux boxes on a mac
|
|
# ? Feb 24, 2016 19:36 |
|
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?
|
# ? Mar 29, 2016 21:18 |
|
YouCompleteMe is great for completion. You may be able to just get away with using :grep for file searching.
|
# ? Mar 29, 2016 21:26 |
|
|
# ? May 4, 2024 12:56 |
|
tekz posted:What plugins would you guys recommend for tab autocomplete, tekz posted:closing html tags, tekz posted:jumping to ends of blocks/methods/parentheses tekz posted:and search all files for text
|
# ? Mar 29, 2016 21:30 |