给自己电脑安装了Ubuntu系统,以后坚持使用linux系统,坚持使用VIM做开发工具。
不是为了装逼,只是为了强迫自己学习。
为了记录VIM使用做如下记录:
1,使用笔记本,安装Ubuntu15.04,系统不自带VIM只有VI,果断安装之,
命令:sudo apt-get install vim
2,进入vi编辑文本后,发现backspace不能 用,方向键错乱。解决方法:
vi /etc/vim/vimrc.tiny
原配置为:
set compatible
将配置改为如下:
set nocompatible
set backspace=2
3,刚开始使用VIM做开发特别不适应全黑白色,看的太蛋疼。配置自己的vim方法:
vi ~/.vimrc
插入配置信息如下
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vim/vimrc), since deb