Live data from Hacker News

Vim After 11 Years

statico.github.com

131–140 of 254 posts

Re: Vim After 11 Years

#132
Here are my 2 cents

set undofile " This creates a undo file that persists your undo history when the file gets closed

imap >> " Double right arrow to escape from insertion mode. This is faster and more comfortable (at least for me) than to reach for tab key for some people

set clipboard=unnamed " This is bridges between your Vim yanks and your system clipboard

Re: Vim After 11 Years

#134
post #88

Some small vim tweaks I've recently been using myself that I find very nice: nmap :write cabbrev w nope Re-map enter to save the file. If you try to do a :w it will yell at you until you take out the cabbrev so you can retrain your muscle memory. Took me about a day to retrain. let g:EasyMotion_leader_key = ';' nmap s ;w nmap S ;b Remap s and S to be easymotion forward and backward. I never use s, since it's largely…

[deleted]

Re: Vim After 11 Years

#135
post #88

Some small vim tweaks I've recently been using myself that I find very nice: nmap :write cabbrev w nope Re-map enter to save the file. If you try to do a :w it will yell at you until you take out the cabbrev so you can retrain your muscle memory. Took me about a day to retrain. let g:EasyMotion_leader_key = ';' nmap s ;w nmap S ;b Remap s and S to be easymotion forward and backward. I never use s, since it's largely…

I use space as my easymotion leader key. So -w goes forward by word, down does easymotion down, etc.

I used to use space as my "clear all searches and clear the echo-line" command, but decided space is too big and easymotion is too good to not pair them. I now use to do the all-clear command.

Re: Vim After 11 Years

#136
post #48

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…

The CtrlP plugin will make opening these files a breeze. If you just trigger it and type palette.cpp, it should be the first match.

Better, you can type palete.cpp and it should still be the first match.

Re: Vim After 11 Years

#137
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 use ; quite a lot after "f"orward, but I rarely use ,. Just doesn't come up much in every-day work.

Re: Vim After 11 Years

#138
In Star Trek the next generation; as different users interacted with different physical platforms (tablets, desk consoles, wall panels, tablets, voice activated devices, "desktops", etc), the work space would adapt to it's physical medium....so....I'm sold!

Re: Vim After 11 Years

#139
post #96

> With a modern, 256-color terminal like iTerm2 or Gnome Terminal, it will even look like gVim Uh, I use xterm... It's obsolete, I know, but it's still the fastest.

Xterm will do 256-colors too. It's the setup I use.
Post reply on HN