Re:Dwm.vim : Tiled Window Management for Vim
by spolu on Thursday August 23, 2012 @02:05AM
(#4421131)
The mouse?? But what for?
Re:Dwm.vim : Tiled Window Management for Vim
by jlgreco on Wednesday August 22, 2012 @09:17PM
(#4420441)
Do you mean `set mouse=a`? `n` just makes it work while in normal mode iirc, while `a` should work in any mode.
Re:Dwm.vim : Tiled Window Management for Vim
by michaelmior on Wednesday August 22, 2012 @10:31PM
(#4420604)
I was excited for a minute, but the ttymouse change did nothing for me on Mac OS Terminal with vim 7.3.
Re:Dwm.vim : Tiled Window Management for Vim
by notJim on Wednesday August 22, 2012 @10:59PM
(#4420674)
I thought this was fixed in Lion, but I believe it used to be the case that OS X terminal didn't support mouse. Check out iTerm 2 instead.
Re:Dwm.vim : Tiled Window Management for Vim
by michaelmior on Wednesday August 22, 2012 @11:01PM
(#4420681)
Thanks :) That seems to have done the trick. Now I just need to get my color scheme working right in iTerm. Still pretty new to Mac OS. I'm really a Linux guy.
Re:Dwm.vim : Tiled Window Management for Vim
by ehsanu1 on Thursday August 23, 2012 @03:19AM
(#4421283)
I always used terminal vim when on Linux, but after I got a macbook (from work - I'd never buy one), I'm pretty happy with MacVim. Give it a shot.
Pretty much everything works out of the box as with the terminal version, you just get a few usability improvements (OS-integrated clipboard, mouse selections create vim selections and vice versa, etc).
Re:Dwm.vim : Tiled Window Management for Vim
by dillona on Thursday August 23, 2012 @02:08AM
(#4421141)
iTerm 2 and Homebrew really make OS X a lot more bearable for me
Switching to zsh and oh-my-zsh has helped a lot too
Re:Dwm.vim : Tiled Window Management for Vim
by lloeki on Thursday August 23, 2012 @02:54AM
(#4421234)
> OS X terminal didn't support mouse
It does not, you have to use the MouseTerm SIMBL plugin.
Re:Dwm.vim : Tiled Window Management for Vim
by graywh on Thursday August 23, 2012 @12:03AM
(#4420824)
ttymouse=xterm2 doesn't work with tmux. And generally, vim will set 'ttym' correctly for you.
set ttymouse=xterm2
set mouse=n
Now you can use the mouse to resize buffers and click on tabs. You can even click to focus on a buffer and don't need to meta-press your way around when you just want to browse things. Go on, click on topics inside of the help, assign the right click to supertab[1], navigate NerdTree[2] like the explorer clone it is. Collapse and expand code folds[3] like a 21st century digital boy.[4]
Furthermore, your scrollwheel all of a sudden now scrolls through your document in putty, xterm, screen, rxvt, tmux, iterm; all of them. Yes, total heresy, I know.
The only thing more important than this is doing a visual selection[5] and then doing a :!(any program) like say: fmt, sort, mail, python, rdoc, indent, bc ...
I know what you are thinking; "But kristopolous, this is so easy; it is not possible". Relax my friend, this is unix, you know this.
PS: Here's my custom vim builder/environment maker: https://github.com/kristopolous/vimbuild
[1] http://www.vim.org/scripts/script.php?script_id=1658
[2] http://www.vim.org/scripts/script.php?script_id=1643
[3] http://vimdoc.sourceforge.net/htmldoc/fold.html
[4] http://www.youtube.com/watch?v=ZN6kCgMUjFw
[5] http://vimdoc.sourceforge.net/htmldoc/visual.html