mirror of https://github.com/akelge/vim
Unnamed clipboard
This commit is contained in:
parent
ad96c523f9
commit
b3c1538760
1
gvimrc
1
gvimrc
|
@ -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>==
|
||||||
|
|
||||||
|
|
|
@ -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
1
vimrc
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue