mirror of
https://github.com/akelge/vim
synced 2025-07-01 21:09:13 +00:00
Unnamed clipboard
This commit is contained in:
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>
|
||||||
|
Reference in New Issue
Block a user