Live data from Hacker News

Vim After 11 Years

statico.github.com

51–60 of 254 posts

Re: Vim After 11 Years

#51

Can vim do the following? I'm editing some project with 10000 C++ files. There is some C++ file I currently don't have open, say "palette.cpp" which is in a subdirectory "project/graphics/algorithms/color/". Now I want to open palette.cpp without ever having to type, not even with tab autocompletion, that path. IntelliJ (which I do use for C++ ;)) can do this easily: just press CTRL+R, then palette.cpp, ENTER, and th…

[deleted]

Re: Vim After 11 Years

#52
I can live without Vim but cannot without Vim mode.

All apps I have used since learning Vim has some kind of Vim bindings - Visual Studio, Eclipse, PyCharm and ST2. I also rely on browser vim plugins (vimium, vimperator).

It seems Vim mode is becoming ubiquitous in my apps.

Re: Vim After 11 Years

#53

Can vim do the following? I'm editing some project with 10000 C++ files. There is some C++ file I currently don't have open, say "palette.cpp" which is in a subdirectory "project/graphics/algorithms/color/". Now I want to open palette.cpp without ever having to type, not even with tab autocompletion, that path. IntelliJ (which I do use for C++ ;)) can do this easily: just press CTRL+R, then palette.cpp, ENTER, and th…

[deleted]

Re: Vim After 11 Years

#54

Can vim do the following? I'm editing some project with 10000 C++ files. There is some C++ file I currently don't have open, say "palette.cpp" which is in a subdirectory "project/graphics/algorithms/color/". Now I want to open palette.cpp without ever having to type, not even with tab autocompletion, that path. IntelliJ (which I do use for C++ ;)) can do this easily: just press CTRL+R, then palette.cpp, ENTER, and th…

Most of the things of such kind are available as vim plugins (for the 'open file without path' thing, see e.g. http://www.vim.org/scripts/script.php?script_id=858) - you can then remap those new commands to keys/shortcuts.

Re: Vim After 11 Years

#55

One of Vim’s strengths is that it starts lightning fast, so starting Vim from the terminal is trivial. With a modern, 256-color terminal like iTerm2 or Gnome Terminal, it will even look like gVim. But the best part is that you can drop into the command line at any time with Ctrl-Z, which suspends Vim, and your working directory is where you left off. Is there any reason to do this instead of !sh within Vim to drop in…

You can do `:sh` instead of `:!sh`.

Ctrl+z suspends Vim so that you are back to where you were when you started Vim.

:sh starts a new shell in Vim's current directory.

Both options have their use.

Re: Vim After 11 Years

#57

Can vim do the following? I'm editing some project with 10000 C++ files. There is some C++ file I currently don't have open, say "palette.cpp" which is in a subdirectory "project/graphics/algorithms/color/". Now I want to open palette.cpp without ever having to type, not even with tab autocompletion, that path. IntelliJ (which I do use for C++ ;)) can do this easily: just press CTRL+R, then palette.cpp, ENTER, and th…

I do a large amount of my developing in vimdiff which, coupled with version control, does what you ask.

Re: Vim After 11 Years

#58
post #40

Lots of people seem to declare ; or , to be useless keys and remap them. They're two of my most used movement keys in certain circumstances. I used to have , remapped to but switched back when I realised what I was missing out on. I'd advise anybody else to reconsider if they've made the same mistake I did.

I've had ; mapped to : forever.

Is there a use for `;` I'm missing out on? `;` just seems to be for stuff like "`fp` -- Oh wait, I didn't see all the p's between my cursor and the p I wanted. ; ; ; ;."

Now I use easymotion.vim which obviates that scenario.

Re: Vim After 11 Years

#60
post #20

Earlier quoted context omitted.

iterm2 supports mouse input, terminal.app does not.

Using a mouse? In Vim?

Absolutely. I use a mouse in vim to resize windows. Much less tedious than doing that with a keyboard.

Good mouse support in a terminal is also nice for elinks, which several of my vim shortcuts trigger (company wide code/wiki searches, or similar).

Post reply on HN