
linux 中VIM的安装和配置
发布日期:2021-05-09 15:05:49
浏览次数:24
分类:精选文章
本文共 3628 字,大约阅读时间需要 12 分钟。
Vim���������������������
Vim���������
���Linux���������������Vim������������������������������������
# ������Vim������������������$ yum search vim# ������������Vim$ yum install -y vim*
������������������������������������������������Vim������������
$ vim
Vim���������
Vim������������������������������������������������
~/.viminfo
Vim���������������������������������������������������������������������������������������������������������������������������������������������/etc/vimrc
Vim���������������������������������������������������������������������������������������������������������������������������������������~/.vimrc
��������������������������������� ������UTF-8������������������������
Vim������������UTF-8��������������������������������������������� /etc/vimrc
������������������������
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$" set fileencodings=ucs-bom,utf-8,latin1endif
������������
# ������Vim������������������������������set nocompatible# ������������������������������������set syntax=on# ������UTF-8������set encoding=utf-8# ������������������������������set noeb# ������������������������set autoindent# ���������������4���������set shiftwidth=4# ���������������������������set expandtab# ������������������set lines=40set columns=120# ���������������set laststatus=2set cmdheight=2# ������������set number# ������������set history=1000# ������������set ignorecaseset hlsearchset incsearch# ������������������������set interactive# ������������filetype plugin indent onfiletype detect
������������������������~/.vimrc���
���������������������������������������
" ������������������set filetype plugin indent on" ������������set fencs=utf-8,ucs-bom,latin1,cp932" ������������set guifont=Courier\ New:h10:cODEM" ������������set lines=50set columns=120" ���������������set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime("%c")}" ���������������������������set guioptions-=Tset guioptions-=m" ������������������set nobackupset noswapfile" ������������set completeopt=preview,menu" ������������set autowrite" ������������set hlsearchset incsearch" ���������������������������������set nocompatible" ������UTF-8���������������if version >=603 set helplang=cn set encoding=utf-8endif" ������������������������colorscheme desert" ������������filetype plugin indent on" ������sym������������set sym" ������������������set mouse=a" ������������filetype plugin indent onfiletype plugin on
���������������
# ������������# ������������������ # ������������������������ # ������������������������������ # ������������������ # ������������������������ # ������������ # ������������������
������������������
# ���������������������������set autoread# ������������������������autocmd FileType c,cpp map:make # ������������������set completeopt=longest,menu# ������������������autocmd BufNewFile *.cpp,*.h,*.sh,*.java exec ":call SetTitle()"# ������������������
C/C++ ������������
" ������������filetype plugin indent on" ���������������������g++���set makeprg=g++\ -Wall\ \%" ������������������������������set projectRoot=~/������������/ " ������������������autocmd MouseEvent popup Conque -/if currentMode is insert -term475" ������������map :call Rungdb()" ");
���������
���������������������������������Vim ������������������������������������������������������������������������������������������������
发表评论
最新留言
感谢大佬
[***.8.128.20]2025年04月03日 16时56分45秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
python 序列化及其相关模块(json,pickle,shelve,xml)详解
2021-05-09
深入学习Tesseract-ocr识别中文并训练字库的方法
2021-05-09
js编写动态时钟
2021-05-09
JavaSE总结
2021-05-09
Consul安装使用
2021-05-09
手动造轮子——基于.NetCore的RPC框架DotNetCoreRpc
2021-05-09
Python IO编程
2021-05-09
CSS入门总结
2021-05-09
Django内置的响应类
2021-05-09
使用 TortoiseGit 时,报 Access denied 错误
2021-05-09
创建Silverlight 5浏览器内受信应用
2021-05-09
基于 HTML5 WebGL 的污水处理厂泵站自控系统
2021-05-09
java _this关键字的用法
2021-05-09
代码荣辱观-以运用风格为荣,以随意编码为耻
2021-05-09
SpringBoot启动原理
2021-05-09
[系列] Go gRPC 调试工具
2021-05-09
django-表单之模型表单渲染(六)
2021-05-09
c++之程序流程控制
2021-05-09
一位年轻而优秀的.NET开发者的成长点滴
2021-05-09