Unnamed clipboard

This commit is contained in:
Andrea Mistrali 2015-11-11 12:43:40 +01:00
parent ad96c523f9
commit b3c1538760
3 changed files with 5 additions and 1 deletions

1
gvimrc
View File

@ -45,6 +45,7 @@ colorscheme Tomorrow-Night-Eighties
" Line/block move up/down " Line/block move up/down
if (has('mac') || has('macunix')) if (has('mac') || has('macunix'))
set clipboard=unnamed
nnoremap <M-Up> :m .-2<CR>== nnoremap <M-Up> :m .-2<CR>==
nnoremap <M-Down> :m .+1<CR>== nnoremap <M-Down> :m .+1<CR>==

View File

@ -7,12 +7,14 @@ function! AppendModeline()
call setpos('.', save_cursor) call setpos('.', save_cursor)
endfunction endfunction
" Define as a command " Define AppendModeline as a command
command! -nargs=0 -bar AppendModeline call AppendModeline() command! -nargs=0 -bar AppendModeline call AppendModeline()
"
" Map to <Leader>ml " Map to <Leader>ml
nnoremap <silent> <Leader>ml :call AppendModeline()<CR> nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
function! GuiTabLabel() function! GuiTabLabel()
let label = '' let label = ''
let bufnrlist = tabpagebuflist(v:lnum) let bufnrlist = tabpagebuflist(v:lnum)

1
vimrc
View File

@ -333,6 +333,7 @@ endif
" Map Ctrl-T to new tab and Ctrl-W to close tab " Map Ctrl-T to new tab and Ctrl-W to close tab
" Map Ctrl-S to save " Map Ctrl-S to save
if !(has('mac') || has('macunix')) if !(has('mac') || has('macunix'))
set clipboard=unnamed
nnoremap <silent> <C-T> :tabnew<CR> nnoremap <silent> <C-T> :tabnew<CR>
nnoremap <silent> <C-W> :tabclose<CR> nnoremap <silent> <C-W> :tabclose<CR>
nnoremap <silent> <C-S> :w<CR> nnoremap <silent> <C-S> :w<CR>