From b3c1538760dc49cf4033c5ffd168435afa7d3b4e Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Wed, 11 Nov 2015 12:43:40 +0100 Subject: [PATCH] Unnamed clipboard --- gvimrc | 1 + plugin/myFunx.vim | 4 +++- vimrc | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gvimrc b/gvimrc index 47e3d5e..b7a7e55 100644 --- a/gvimrc +++ b/gvimrc @@ -45,6 +45,7 @@ colorscheme Tomorrow-Night-Eighties " Line/block move up/down if (has('mac') || has('macunix')) + set clipboard=unnamed nnoremap :m .-2== nnoremap :m .+1== diff --git a/plugin/myFunx.vim b/plugin/myFunx.vim index 981abe3..bc81375 100644 --- a/plugin/myFunx.vim +++ b/plugin/myFunx.vim @@ -7,12 +7,14 @@ function! AppendModeline() call setpos('.', save_cursor) endfunction -" Define as a command +" Define AppendModeline as a command command! -nargs=0 -bar AppendModeline call AppendModeline() +" " Map to ml nnoremap ml :call AppendModeline() + function! GuiTabLabel() let label = '' let bufnrlist = tabpagebuflist(v:lnum) diff --git a/vimrc b/vimrc index 1a2b26c..1086453 100644 --- a/vimrc +++ b/vimrc @@ -333,6 +333,7 @@ endif " Map Ctrl-T to new tab and Ctrl-W to close tab " Map Ctrl-S to save if !(has('mac') || has('macunix')) + set clipboard=unnamed nnoremap :tabnew nnoremap :tabclose nnoremap :w