Vim After 11 Years
131–140 of 254 posts
Re: Vim After 11 Years
#132set 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
#133Re: Vim After 11 Years
#134Some 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…
Re: Vim After 11 Years
#135Some 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 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
#136Can 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.
Re: Vim After 11 Years
#137Lots 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.
Re: Vim After 11 Years
#138Re: Vim After 11 Years
#139> 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.
Re: Vim After 11 Years
#140PG is there a way to have HN present the subdomain for github submissions?