Vim After 11 Years
111–120 of 254 posts
Re: Vim After 11 Years
#112Earlier quoted context omitted.
iterm2 supports mouse input, terminal.app does not.
Using a mouse? In Vim?
People that take keyboard only to the extreme strike me as adhering to the letter of the law rather than the intent. Whichever works faster for a person is better.
Re: Vim After 11 Years
#113Some 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…
Space is my leader key.
Re: Vim After 11 Years
#114Some 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 for toggling folding: " space toggles the fold state under the cursor. nnoremap :exe 'normal! za'.(foldlevel('.')?'':'l') " space expands with zO map zO
nnoremap za
vnoremap za
also, for folding in general I'd recommend using set foldmethod=marker
which has the benefit of making folds more 'transparent' in your code, and also persistent across vim sessionsRe: Vim After 11 Years
#115https://github.com/mihaifm/vimpanel https://github.com/mihaifm/bufstop
Re: Vim After 11 Years
#116My single greatest tip to make vim even more amazing is to run it in a tmux session: It makes it super easy to split panes and create new windows for related things you need to do (git stuff, compilation, running tests, running a REPL, etc.)
Re: Vim After 11 Years
#117Earlier quoted context omitted.
Why for?
You seem to be conflating Vim and Terminal. Vim is just one of the many things you can run in a terminal, and just one of the many things you can do with a terminal.
And I know that I never use mouse in one or the other. I don't use it for scrolling, I don't use it for pointing and clicking, I don't use for selecting stuff…
REPL? no use for the mouse. htop? no use for the mouse. git/svn/hg? no use for the mouse.
Re: Vim After 11 Years
#118Re: Vim After 11 Years
#119Earlier quoted context omitted.
All of that can be done much more efficiently without the mouse: - scrolling with a mouse wheel :h scroll.txt - selecting/resizing a split window :h window-resize :h window-move-cursor - jumping to a specific place in the code /foo or the myriad of cool things in :h motion.txt - making a selection v{motion}
I agree on most points, but there is no way that wacking Ctrl-W +/-/>/ You can of course make nicer mappings, but even then it isn't as nice.
10
But I tend to keep windows at equal width anyway.Re: Vim After 11 Years
#120Can 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…
If I may ask, how do you use it? The C/C++ plugin was unusable, last time I tried it.