News for hackers. Stuff that matters.
Re:Dwm.vim : Tiled Window Management for Vim by devgutt on Wednesday August 22, 2012 @05:20PM (#4419647)
I use TMUX with VIM for that.
Re:Dwm.vim : Tiled Window Management for Vim by spolu on Wednesday August 22, 2012 @05:22PM (#4419655)
Better yank/paste | over SSH support
Re:Dwm.vim : Tiled Window Management for Vim by _delirium on Wednesday August 22, 2012 @06:46PM (#4420031)
Is there any way to run multiple vim windows from one vim process, with them sharing the same internal clipboard?

To me, the window manager handling the window arrangement feels like The Right Thing, but vim handling the clipboard also feels right (because it interacts with many commands). So I'd like some hybrid of the two options of: 1) running multiple WM-managed vim instances; vs. 2) running one vim with vim-internal window management. I basically agree with the goal of running vim with dwm window management, but it seems wrong to have to reimplement dwm inside of vim, instead of using dwm itself to manage vim windows.

Re:Dwm.vim : Tiled Window Management for Vim by dsrguru on Wednesday August 22, 2012 @08:05PM (#4420238)
As an aside, you should also note that you can interact with the X clipboard from within vim or gvim. It's represented by the * register, so you can do things like "[asterisk]p to paste from other programs or "*Y to yank to them. Replace [asterisk] with the actual symbol. HN thought I was trying to italicize.
Re:Dwm.vim : Tiled Window Management for Vim by devgutt on Wednesday August 22, 2012 @10:03PM (#4420543)
I bound some keys to this and works pretty well

  nnoremap <Leader>y "+yy  
  nnoremap <Leader>d "+dd
  noremap  <Leader>p "+p
  noremap  <Leader>P "+P
  vnoremap <Leader>y "+y
  vnoremap <Leader>d "+d
Re:Dwm.vim : Tiled Window Management for Vim by tammer on Wednesday August 22, 2012 @09:29PM (#4420464)
If your vim is on a box with an X server, look into client/server mode. You can then specify if you want to open a file in its own process or in the server process you spawned earlier.

Also, you can set the default yank register to be your X clipboard. Look into set clipboard = unnamed+ (make sure your vim is complied with X support for both of these)

Re:Dwm.vim : Tiled Window Management for Vim by milkmiruku on Wednesday August 22, 2012 @06:58PM (#4420081)
For 2) you can use tabs in Vim to provide different workspaces, with each workspace having a certain layout of windows.

I've just found out that dwm.vim doesn't work well with tabs just yet though - it copies all buffer windows to the current tab on Ctrl-f (make active window the master focus).

Re:Dwm.vim : Tiled Window Management for Vim by spolu on Thursday August 23, 2012 @02:43AM (#4421216)
Yep this has to be fixed.
Re:Dwm.vim : Tiled Window Management for Vim by jlgreco on Wednesday August 22, 2012 @10:14PM (#4420566)
"Is there any way to run multiple vim windows from one vim process, with them sharing the same internal clipboard?"

Yes, though you will need a Vim with support for it built. See `:h client-server` for details. (I never really got into using it regularly)

Re:Dwm.vim : Tiled Window Management for Vim by arnarbi on Wednesday August 22, 2012 @05:29PM (#4419682)
I use XMONAD with VIM for that. :)
Re:Dwm.vim : Tiled Window Management for Vim by milkmiruku on Wednesday August 22, 2012 @05:52PM (#4419803)
I got into Awesome Window Manager a couple of months ago and have been getting to know how to manage remote Vim split windows with the help of NERDTree. A remote in-Vim managed tiling aproach would be cool though. Googling around, there's also https://github.com/fabi1cazenave/suckless.vim which emulates wmii and has "[s]tacked, [d]ivided, [f]ullscreen" modes. I need to learn tabs also. Things can get busy on 1024*768!
Re:Dwm.vim : Tiled Window Management for Vim by milkmiruku on Wednesday August 22, 2012 @06:16PM (#4419930)
awesome wm, urxvt, ssh, tmux, vim, dwm.vim http://i.imgur.com/fC556.png

nerdtree <cr> opens things in the active window, nerdtree i opens a split in the master window, and a dwm.vim focus tidies things up. no fullscreen mode is unhandy though (i've not learnt how to unmaximise from Ctrl-w _ and Ctrl-w | yet).

edit; silly me, doing Ctrl-f now unmaximises the window.

Re:Dwm.vim : Tiled Window Management for Vim by spolu on Wednesday August 22, 2012 @06:23PM (#4419950)
THAT's AWESOME!!! Please file an issue with how you would see the user interface for a fullscreen mode. I'll be happy to add it asap! -> https://github.com/spolu/dwm.vim
Re:Dwm.vim : Tiled Window Management for Vim by milkmiruku on Wednesday August 22, 2012 @06:32PM (#4419992)
done. as noted there, Ctrl-w | Ctrl-w _ to fullscreen does leave the other windows crushed at the edge, but i guess there might be a better method?
Re:Dwm.vim : Tiled Window Management for Vim by spolu on Wednesday August 22, 2012 @06:26PM (#4419964)
Actually I have an idea... CTRL-L goes fullscreen while CTRL-H brings back to tiled mode...
Re:Dwm.vim : Tiled Window Management for Vim by spolu on Wednesday August 22, 2012 @06:29PM (#4419974)
yep, you just navigate where you want and focus
Re:Dwm.vim : Tiled Window Management for Vim by heretohelp on Wednesday August 22, 2012 @06:16PM (#4419929)
CtrlP + tabbar has done a lot to make this Emacs user tolerate the occasional vim outing.
Re:Dwm.vim : Tiled Window Management for Vim by milkmiruku on Wednesday August 22, 2012 @06:24PM (#4419955)
Wonderful, ta, I'll check them out soon! Links for the lazy yet interested; https://github.com/kien/ctrlp.vim http://www.vim.org/scripts/script.php?script_id=1338
Re:Dwm.vim : Tiled Window Management for Vim by spolu on Wednesday August 22, 2012 @06:28PM (#4419972)
nice.
Re:Dwm.vim : Tiled Window Management for Vim by spolu on Wednesday August 22, 2012 @05:29PM (#4419686)
That looks cool!
Re:Dwm.vim : Tiled Window Management for Vim by malvim on Thursday August 23, 2012 @09:25AM (#4422181)
+1 for tmux, I've been using it for a few months and loving every minute of it. One question about tmux/dwm.vim, though: Is there a way we could have the "focus"/automatic layout feature in tmux?

I'd love to press a key combo and have tmux bring my current pane to the large left panel, switching it with whatever I had there before.