Surprised PeepOpen hasn't been mentioned yet. I use it exclusively with MacVim on OSX. It is a bit unconventional but works amazingly well: http://peepcode.com/products/peepopen
Vim is hard, I just want to click around
71–80 of 98 posts
Re: Vim is hard, I just want to click around
#72I have a hard time watching people traditionally navigate filetrees and tabs with emacs and ido-mode enabled I press Ctrl+X B to open a buffer, Ctrl+X F to open a file, I typically type 2 or 3 characters from the filename and emacs gives me a list of matches (with autocomplete), usually the first suggestion is correct and I press return to open the file. I barely need to think while I do this, there is no visual clut…
Re: Vim is hard, I just want to click around
#73Earlier quoted context omitted.
> don't give up Yes. All the tutos I have read recently insist on using hjkl, which is a matter of taste, but do not emphasize what I believe is the most important (for terminal use): cut and paste. - Easy cut and paste in Vim is done with yy and p, avoid mouse and ctrl-c/v or any other trick that is not "inside" Vim. - Good trick are to first select a block with . - Don't forget P, which is pasting above current lin…
Also worth remembering is that every command that deletes really cuts . Which is to say, deletion commands like x and dd store the deleted content in the register that will be used when you hit p or P. This is important to know both because it can be very useful sometimes and because it can get in your way other times (e.g., if you're trying to repeat an action and keep replacing a line with another line, you'll have…
"_ is the blackhole register, with this the replaced text disappears and you can continue "putting" the new text at will.
Re: Vim is hard, I just want to click around
#74Surprised PeepOpen hasn't been mentioned yet. I use it exclusively with MacVim on OSX. It is a bit unconventional but works amazingly well: http://peepcode.com/products/peepopen
PeepOpen is the main reason I use MacVim. So excellent.
What's in your config for it?
Re: Vim is hard, I just want to click around
#75There seems to be a big divide in usage between gui vim'ers who are probably doing one window/ide thing vs terminal vim'ers who probably have multiple terms/vim's open and use unix/cmd line as their die.
Note I make value judgment as to which is better (I'm sure people vary and so should their tools). My point is you should figure out which one you are and filter vim suggestions appropriately
Re: Vim is hard, I just want to click around
#76Reposting this for horseshoes; it seems to have been mysteriously censored. Getting familiar with GNU screen and within vim, liberal use of :tabnew foo got me to prefer a terminal emulator for working and notes over eclipse / gedit / nautilus. (gt and gT move to different tabs and :tabm N moves the current tab to tab N btw). If from within vim you :mksession bar.vim, vim saves all your open tabs so you can :wqall and…
horseshoes is hellbanned for this comment: http://news.ycombinator.com/item?id=2928894 This is why I browse with dead comments enabled. A single particularly poor comment is a rather inaccurate indicator of future comment quality.
Re: Vim is hard, I just want to click around
#77Earlier quoted context omitted.
Unfortunately, the remote features require a GUI version of vim. Personally, I prefer to run vim in a tab of my terminal.
Under Linux I always run vim in a terminal. Part of this is habit because I (in the past) often edit files on remote computers and I like the consistency. On my mac I end up using MacVim mostly so that my Vim and Terminal apps can be considered separate apps for the purpose of things like spaces, and it just seemed to integrate a little better with the Mac infrastructure. But in general I haven't found a reason to pr…
- The excellent "solarized" colour scheme only works properly with 24-bit color unless you're willing to mess with the terminal palette and break all your other terminal apps. No terminal I know of supports 24-bit color.
- I have a handy keybinding that cycles through open windows and tabs, I find it makes the most sense bound to Ctrl-Tab and Ctrl-Shift-Tab. Neither key can be bound in any terminal I know of.
Re: Vim is hard, I just want to click around
#78I've always been a little puzzled by people who use a file-drawer or file-list or similar addon with Vim, and I now I think I know why: I'm guessing most of these people have Vim open as their One Tool, much like another programmer might have Xcode or Visual Studio open as their One Tool, and they want to get everything done in it. At work, I usually have at least two windows open at all times: Vim full-screen on one…
Unfortunately, the remote features require a GUI version of vim. Personally, I prefer to run vim in a tab of my terminal.
vim --servername FOO
If you start vim in another tab with the same servername, you can open files in the first Vim, no problem: vim --servername FOO --remote-tab ~/.bashrcRe: Vim is hard, I just want to click around
#79I've always been a little puzzled by people who use a file-drawer or file-list or similar addon with Vim, and I now I think I know why: I'm guessing most of these people have Vim open as their One Tool, much like another programmer might have Xcode or Visual Studio open as their One Tool, and they want to get everything done in it. At work, I usually have at least two windows open at all times: Vim full-screen on one…
Or even alias vimtab="gvim -f --remote-tab-silent" in your .bashrc, .zshrc or equivalent
Re: Vim is hard, I just want to click around
#80Earlier quoted context omitted.
The Mac OS X command open allows this directly: $ open -a macvim filename.ext which permits: $ alias mvim="open -a macvim" as a shortcut.
I have found issue with this recently. When I have multiple tabs open, and then attempt to open multiple files after that, it opens them all in a split view :/
:help 'tabpagemax'