You are not logged in.

#1 2010-01-04 23:10:25

tladuke
Member
Registered: 2009-07-23
Posts: 176

How do you copy/paste between vim windows in DWM?

I like the vim registers, yank, etc. but I like the DWM window management, so I'm always making new terminals, opening something in vim, then moving them around alot, sending them to different tags, and so on. It's especially hard to copy when I have line numbers on.

Or, how do you do manage your vim windows for programming?

Offline

#2 2010-01-04 23:21:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How do you copy/paste between vim windows in DWM?

"+y
"+p

works fine for me...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-01-04 23:37:59

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: How do you copy/paste between vim windows in DWM?

Either that doesn't work for me or I'm pressing it wrong.

Offline

#4 2010-01-04 23:40:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How do you copy/paste between vim windows in DWM?

What have you got in your .vimrc by way of pasting functions?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-01-04 23:47:10

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: How do you copy/paste between vim windows in DWM?

Nothing that I can see. Thanks for the tip; I'll go look that up.

  1 set nocompatible
  2 set autoindent
  3 set smartindent
  4 set showmatch
  5 set ruler
  6 set incsearch
  7 set ignorecase
  8 set number
  9 
 10 set statusline=%<%F%h%m%r%h%w%y\ %{&ff}\ %{strftime(\"%c\",getftime(expand(\"%:p\")))}%=\ lin:%l\,%L\ col:%c%V\ pos:%o\ ascii:%b\ %P
 11 set laststatus=2
 12 
 13 syntax on             " Enable syntax highlighting
 14 filetype on           " Enable filetype detection
 15 filetype indent on    " Enable filetype-specific indenting
 16 filetype plugin on    " Enable filetype-specific plugins
 17 compiler ruby         " Enable compiler support for ruby
 18 
 19 function InsertTabWrapper() 
 20         let col = col('.') - 1 
 21         if !col || getline('.')[col- 1] !~ '\k' 
 22                 return "\<tab>"    
 23         else 
 24                 return "\<c-p>" 
 25         endif
 26 endfunction 
 27 inoremap <tab> <c-r>=InsertTabWrapper()<cr>
 28 
 29 au BufRead,BufNewFile *.js set ft=javascript.jquery

Offline

#6 2010-01-04 23:48:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How do you copy/paste between vim windows in DWM?

You could start by using mine if you like - it is cobbled together from posts here...

http://pastebin.com/f3cfa4df6


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2010-01-05 00:04:21

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: How do you copy/paste between vim windows in DWM?

Thanks. Now I have "+y "+p working.

Kind of an awkward combo...

Offline

#8 2010-01-05 00:07:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How do you copy/paste between vim windows in DWM?

Indeed. I often find myself, with my fingers poised above the keys, thinking "now, how does this work again..."

There is probably a way to rebind the keys - but it works and, the odd brain freeze aside, it hardly seems worth the candle.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB