Comments on: Nifty Vim Tricks http://www.terminally-incoherent.com/blog/2012/04/02/nifty-vim-tricks/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Scott Hansen http://www.terminally-incoherent.com/blog/2012/04/02/nifty-vim-tricks/#comment-22199 Fri, 18 May 2012 14:48:14 +0000 http://www.terminally-incoherent.com/blog/?p=11687#comment-22199

Thanks for the tips…there’s ALWAYS something new to learn in Vim! Now just keeping all in my head until I need it…

Scott

Reply  |  Quote
]]>
By: Luke Maciak http://www.terminally-incoherent.com/blog/2012/04/02/nifty-vim-tricks/#comment-21912 Thu, 05 Apr 2012 20:31:41 +0000 http://www.terminally-incoherent.com/blog/?p=11687#comment-21912

@ rev:

Nice! I’ve been using MiniBufExpl that essentially emulates a tab-bar but it has been a bit problematic as it conflicts with some plugins such as Fugitive.

Reply  |  Quote
]]>
By: rev http://www.terminally-incoherent.com/blog/2012/04/02/nifty-vim-tricks/#comment-21905 Thu, 05 Apr 2012 02:01:39 +0000 http://www.terminally-incoherent.com/blog/?p=11687#comment-21905

i too have embraced vim. i prefer vim on the console, not that abomination gvim, mind you. one of the plugins i really love is NERDTree, and my favorite color scheme by *far* is solarized. here is a remap that i find really handy:

” buffer navigation (insert mode)
imap  _
imap  _
imap  :vertical res
imap  :vertical res 50

” buffer navigation (command mode)
map  _
map  _
map  :vertical res
map  :vertical res 50

it lets you switch buffers by hitting ctrl and arrow keys. when going up or down, it will minimize all but the current buffer. when going left it will open the left buffer 50 columns – this works well with NERDTree, then when going right it minimizes the left buffer. the result is that you always have as full a screen view of your current buffer as possible.

i’ll be adding a few of your tips to my vimrc, for sure.

Reply  |  Quote
]]>
By: Luke Maciak http://www.terminally-incoherent.com/blog/2012/04/02/nifty-vim-tricks/#comment-21903 Wed, 04 Apr 2012 20:40:17 +0000 http://www.terminally-incoherent.com/blog/?p=11687#comment-21903

@ copperfish:

Yep, try it! It’s fun. Basically the more you customize your Vim, the better you get at it… And at customizing it. It is a performance optimization feedback loop. :)

@ Stephen McQuay:

Thank you sir! Steve Losh is way better at vimming than me. :)

And yes, “+p was exactly what I meant. Good catch.

Reply  |  Quote
]]>
By: Stephen McQuay http://www.terminally-incoherent.com/blog/2012/04/02/nifty-vim-tricks/#comment-21902 Wed, 04 Apr 2012 20:35:25 +0000 http://www.terminally-incoherent.com/blog/?p=11687#comment-21902

Thanks for the excellent reading. I haven’t read anything so useful to my vim prowess since Steve Losh’s article on the same subject.

Incidentally did you mean to put

nnoremap p "+p

the pasting didn’t work until I added the paste keystroke. If it was errata, please feel free to just delete/edit the comment.

Reply  |  Quote
]]>
By: copperfish http://www.terminally-incoherent.com/blog/2012/04/02/nifty-vim-tricks/#comment-21896 Tue, 03 Apr 2012 12:09:23 +0000 http://www.terminally-incoherent.com/blog/?p=11687#comment-21896

Nice Luke. I’m no developer so I seldom need the syntax related stuff, but Vim is still my text editor of choice on all platforms. Thanks to this I might even try some of the remapping stuff.

Reply  |  Quote
]]>