1,有的Linux系统中,vim默认鼠标拖拽会进入visual模式
如何取消这个设定。
然后进入/usr/share/vim/目录中,grep查找下含有set mouse的文件,
grep -Ir 'set mouse'
#我的路径(In my system: /usr/share/vim/vim80/defaults.vim)
cp vimrc_example.vim ~/.vimrc
vim ~/.vimrc
## ~/.vimrc文件 注释掉
Go to line "source $VIMRUNTIME/defaults.vim" and press "gf" when cursor on defaults.vim (In my system: /usr/share/vim/vim80/defaults.vim)
Please comment:
" In many terminal emulators the mouse works just fine. By enabling it you
" can position the cursor, Visually select and scroll with the mouse.
#"if has('mouse')
#" set mouse=a
#"endif
2. 在终端打开vim总是无法使用backspace
vim默认会自动备份原始文件,~结尾的文件就是备份的原始文件,如果想要关闭这个功能,可以在配置文件中修改:
~/.vimrc中添加:
set nobackup
set nowritebackup