Live data from Hacker News

One with Vim

invisibletheory.com

101–110 of 129 posts

Re: One with Vim

#101

Earlier quoted context omitted.

Fuzzy Finder is also very useful http://www.vim.org/scripts/script.php?script_id=1984

not nearly as much as command-t as it will only look for files in the current folder instead of going recursively down all folders

Not true. FuzzyFinder does search recursively.

It can, in fact, search pretty much anywhere in vim (from the docs):

        - buffers 
        - files 
        - directories 
        - most recently used files 
        - files around most recently used files 
        - most recently used command-lines 
        - bookmarked files 
        - bookmarked directories 
        - tags 
        - files which are included in current tagfiles 
        - jump list 
        - change list 
        - buffer lines 
        - quickfix 
        - help

Re: One with Vim

#102
post #47

Earlier quoted context omitted.

I never tried to make it work, but the vim distribution for Windows used to include a COM object which could be used as your Visual Studio editor.

It works, in a no-frills sort of way. I would much like it if I could get true embedding though.

Have you tried viemu? It's not real vim in that it doesn't have the plugins etc. but I haven't missed a single one of them.

Re: One with Vim

#103
Why does every article about Vim just recently seem to promote it on the Mac to be used via MacVim? Vim does work in the terminal, and apart from tabs I can't see what MacVim is bringing to the party?

Re: One with Vim

#105

Am I foolish for not believing the vi/vim hype? I understand that it's been around for as long as rocks, and that it's quite handy since it's available everywhere. I use it daily, in fact, but rarely for more than basic editing. I'll just come out and say it: my favorite editor is Visual Studio. Sure, it's slow to load and rather fat now, but I'm talking solely about the editing functionality. With vim, I have to cli…

Actually I had the same argument about 15 years ago when I started using vim. Actually vim was forced on me on my first week of uni. We had to use "unix" (woooah)... anyhoo, the first 2 weeks were a total pain as we didnt have (or I couldnt find) alternatives... yes there was emacs but I couldnt be bothered go to another non-UI editor... but after that there was no looking back.. I think it is after that initial two…

By "non-UI", I take it you mean "non-GUI"? emacs certainly has its fair share of user interface, it'd be kind of hard to use otherwise. It can, admittedly, be kind of hard to use anyway, but that's not because it lacks a UI.

Re: One with Vim

#106

Why does every article about Vim just recently seem to promote it on the Mac to be used via MacVim? Vim does work in the terminal, and apart from tabs I can't see what MacVim is bringing to the party?

Native integration, mostly. I.e. clipboard stuff and a shiny interface. Also, colors.

Me, I compiled vim over ports and use it via rxvt-unicode or as gvim in an XQuartz session. That, and I run XMonad in that same session.

This way, my iMac at work almost feels like a Linux machine, and I can at least get work done here (if I'm not browsing HN.)

Re: One with Vim

#107
post #43

Am I foolish for not believing the vi/vim hype? I understand that it's been around for as long as rocks, and that it's quite handy since it's available everywhere. I use it daily, in fact, but rarely for more than basic editing. I'll just come out and say it: my favorite editor is Visual Studio. Sure, it's slow to load and rather fat now, but I'm talking solely about the editing functionality. With vim, I have to cli…

I'll just come out and say it: my favorite editor is Visual Studio Not to be overly pedantic, but your favorite IDE is Visual Studio, and you just happen to use whatever crappy editor component comes bundled with it. If we could have full-blown Vim embedded inside IDEs instead of good-but-incomplete plugins which merely give you some of the key mappings, I'd be elated and couldn't see why anyone would stick with the…

vsvim also provides a lot of Vim goodness in VS. The main lacking feature (for me, personally) is macro support.

Re: One with Vim

#108

Earlier quoted context omitted.

Fuzzy Finder is also very useful http://www.vim.org/scripts/script.php?script_id=1984

not nearly as much as command-t as it will only look for files in the current folder instead of going recursively down all folders

:FufCoverageFile is what you're looking for.

Re: One with Vim

#109
post #42
post #11

Vim is my primary editor but I think the only really good part of vim is the keyboard navigation. The rest could be much better. For example, to this day I haven't figured out an easy, built-in way to copy from one vim window to another. I'd love to have some features of other editors have but the key bindings always hold me back.

you can copy and paste from the system clipboard as the + register - use "+y to yank to the system clipboard and "+p to paste from it (depending on OS, you may need to use * instead of +). This allows cutting and pasting between vim and other applications (including other instances of vim). For editing multiple docs with vim, I find it's easier to use multiple buffers in the same window. Use :b to jump back and forth…

Thanks, works great. When memorize the keystrokes I hope it will be as fast as regular yanking.

I actually use tabs for multiple files and these keybindings for navigation:

nmap T :tabedit nmap H :tabprevious nmap L :tabnext

So I can go into a project dir and do vim -p .c* which opens the file in tabs and just navigate with Shift-H and Shift-L

Re: One with Vim

#110
post #67

Earlier quoted context omitted.

gvim has menus and the keyboard-reinforcing shortcut hints. Also, you can copy/paste with other windows (which is why I started using it over vim).

I'll echo the gvim menu hints recommendation for Windows users. As to copy/paste, does that depend on the platform? I use vim in a terminal on Linux and Ctl+Shft+C/Ctl+Shft+V on selected text works fine for clipboard transfers. I don't use vim on Windows often enough to remember how things work there, however, and the article that prompted this discussion was focused on Mac usage.

I don't recall. I use gvim/vim on linux (although not gvim from term, because I don't like seeing the GLib errors :) ).
Post reply on HN