Browse Source

Use C-v as column selection while not using mswin settings

Signed-off-by: Ein Verne <[email protected]>
pull/4/head
Ein Verne 7 years ago
parent
commit
8605d5c0d2
  1. 12
      .vim/startup/map_vimrc
  2. 6
      .vimrc

12
.vim/startup/map_vimrc

@ -19,9 +19,15 @@ map <leader>to :tabonly<cr>
map <leader>tc :tabclose<cr>
" visual mode copy and paste to system clipboard
vmap <C-c> "+y
vmap <C-x> "+c
vmap <C-v> "+p
"vmap <C-c> "+y
"vmap <C-x> "+c
"vmap <C-v> "+p
" 将VIM中将内容复制到系统粘贴板,或者从系统粘贴板粘贴到VIM
nnoremap <C-y> "+y
vnoremap <C-y> "+y
nnoremap <C-p> "+gP
vnoremap <C-p> "+gP
function! Xml()
set filetype=xml

6
.vimrc

@ -22,8 +22,8 @@ else
source $HOME/.vim/startup/plugin_vimrc
endif
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
" source $VIMRUNTIME/vimrc_example.vim
" source $VIMRUNTIME/mswin.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
@ -61,7 +61,7 @@ if g:iswindows
endif
" 如下命令使鼠标用起来象微软 Windows
behave mswin
" behave mswin
" 高亮整行
set cursorline

Loading…
Cancel
Save