Skip to content

Commit

Permalink
Fix clipboard yanking. Add scratchbuffer command.
Browse files Browse the repository at this point in the history
  • Loading branch information
roidrage committed Feb 26, 2011
1 parent a010989 commit 6c26aff
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ map <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR>
map <leader>b :FufBuffer<cr>
" Yank to clipboard
map <leader>y "+y
map <leader>y "+yy
" jj instead of escape in insert mode
imap jj <Esc>
"
" Get rid of awkward Ex-mode
map Q <Esc>
Expand Down Expand Up @@ -144,3 +146,14 @@ function! GithubLink() range
endfunction

noremap <Leader>gh :call GithubLink()<CR>
function! NewScratchBuffer()
split
enew
resize 10
set buftype=nofile
set bufhidden=hide
setlocal noswapfile
endfunction

map <Leader>sb :call NewScratchBuffer()<CR>

0 comments on commit 6c26aff

Please sign in to comment.