博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
vim添加复制(crtl+c),粘贴(ctrl+v)ctrl+A 等快捷键
阅读量:5864 次
发布时间:2019-06-19

本文共 1389 字,大约阅读时间需要 4 分钟。

1  在  /usr/share/vim/vimrc文件中添加   source $VIMRUNTIME/mswin.vim

2  mswin.vim位置在 /usr/share/vim/vim72/目录下面

3  下面是mswin.vim文件的目录,没有这个文件的可以自己创建这个文件

" Set options and add mapping such that Vim behaves a lot like MS-Windows  "  " Maintainer:    Bram Moolenaar 
" Last change: 2006 Apr 02 " bail out if this isn't wanted (mrsvim.vim uses this). if exists("g:skip_loading_mswin") && g:skip_loading_mswin finish endif " set the 'cpoptions' to its Vim default if 1 " only do this when compiled with expression evaluation let s:save_cpo = &cpoptions endif set cpo&vim " set 'selection', 'selectmode', 'mousemodel' and 'keymodel' for MS-Windows behave mswin " backspace and cursor keys wrap to previous/next line set backspace=indent,eol,start whichwrap+=<,>,[,] " backspace in Visual mode deletes selection vnoremap
d " CTRL-X and SHIFT-Del are Cut vnoremap
"+x vnoremap
"+x " CTRL-C and CTRL-Insert are Copy vnoremap
"+y vnoremap
"+y " CTRL-V and SHIFT-Insert are Paste map
"+gP map
"+gP cmap
+ cmap
+ " Pasting blockwise and linewise selections is not possible in Insert and " Visual mode without the +virtualedit feature. They are pasted as if they " were characterwise instead. " Uses the paste.vim autoload script. exe 'inoremap

  

转载地址:http://irunx.baihongyu.com/

你可能感兴趣的文章
RMAN_学习笔记3_RMAN Catalog恢复目录
查看>>
【转】索引概念、分类
查看>>
JSON对象与字符串间的转化
查看>>
微软小冰
查看>>
oracle for update for update nowait
查看>>
判断相等
查看>>
java.util.Vector
查看>>
【原创】驱动卸载之DeleteService
查看>>
【硬件】变压器的电特性参数
查看>>
正则表达式基本语法
查看>>
hdoj1010 Temperor of the bone
查看>>
调用office COM出现不会退出的问题
查看>>
[转] 钉钉的H5性能优化方案
查看>>
补习系列(14)-springboot redis 整合-数据读写
查看>>
django rest framework custom json format
查看>>
第四十五条:将局部变量的作用域最小化
查看>>
PHP文件上传及注意事项
查看>>
[C#] 连接数据库并验证用户名和密码
查看>>
3.量化交易策略基本框架
查看>>
多媒体开发之rtp 打包发流---同网段其他机子sdp 播放不了
查看>>