设置vim config(vim配置)

vim配置  时间:2021-01-11  阅读:()

vim config vim配置

Take the code copy to the user directory, and the new file i s.Vimrc

Saving can take effect. If youwant all users to go into effect,please modify /etc/vimrc (first CP one)

==========================================================

===============

"DesCRiption: vimrc files for your own use, for, Linux/Windows,GUI/Console

"

"Last Change: , 2010, 08, 02, 15:13. "

"

"Version: 1.80. "

"

"=

=========================================================

===============

Set nocompatible "close VI compatibility mode"

Syntax on "automatic syntax highlighting"

"Colorscheme Molokai" sets the color scheme

"Set number" displays line numbers

"Set cursorline" highlights the current row

"Set ruler" opens the status bar ruler

"Set shiftwidth=4" sets the "and" command to move at a width of 4

"Set softtabstop=4" makes it possible to delete 4 spaces at a time by pressing the backspace key

"Set tabstop=4" sets the tab length to 4

"Set nobackup" does not backup when overwriting files "Set autochdir" automatically switches the current directory to the directory in which the current file is located "Filetype plugin indent on" opens the plug-in

"Set backupcopy=yes" sets the behavior when it is backed up for coverage

"Set ignorecase smartcase" ignores case when searching, but remains case sensitive with one or more uppercase letters "Set nowrapscan" prohibits searching at the end of the search to both ends of the file

"Set incsearch" displays the search results when entering the search content

"Set hlsearch", highlighting the text to be found when searching

"Set noerrorbells". Close the error message ring

"Set novisualbell" closes, using visual rings instead of calls "Set t_vb=" the terminal code for the null error ringtone When set showmatch inserts parentheses, briefly jump to the corresponding parentheses in the match

"Set matchtime=2" briefly jumps to the time it takes to match parentheses

Set magic "sets the magic. "

"Set hidden" allows you to switch buffers when unsaved changes are made, and the changes are saved by VIM at this time Set guioptions-=T "hide Toolbar"

Set guioptions-=m "hide the menu bar"

Set smartindent "smart automatic indentation"when opening new lines

Set, backspace=indent, EOL, start

"Not set in insert state, cannot use backspace key and Delete key to delete carriage return

"Set cmdheight=1". The number of rows to set the command line is 1

"Set laststatus=2" displays the status bar (the default value is 1, unable to display the status bar)

Set, statusline=\,%<%F[%1*%M%*%n%R%H]%=\,%y\,%0

(%{&fileformat}\,%{&encoding}\,%c:%l/%L%) \

"Sets the information displayed on the status line

"Set foldenable" begins folding

"Set foldmethod=syntax" sets syntax folding

"Set foldcolumn=0" sets the width of the collapsed area "SETLOCAL foldlevel=1" sets the number of fold layers to “foldclose = “设置为自动关闭折叠

“nnoremap <空格> @ = f oldclo sed 线' ' 0  ” ZC“咗”  <cr>

“用空格键来开关折叠

“返回操作系统如Windows Mac或Linux  et. st. 。

功能 mysys()

如果有 “运行”  | |有Win32 | |有 “win64”  | |有 “win95” 返回“窗口”

“有 “UN I X” 

返回“Linux”endif endfunction

“用户目录变量vimfiles美元

如果mysys() = = “窗口”

让vimfiles美元=美元/ vimfiles的活力。

“mysys() = = “Linux”

让vimfiles美元= $家。 /活力” 。endif

“设定DOC文档目录

让helptags = vimfiles美元/医生。

“设置字体以及中文支持

如果有win32

集guifont = inconsolata H12全国endif

“配置多语言环境

如果有 “multi_byte” 

“UTF-8编码

设置编码为UTF-8

集termencoding = UTF-8

集formatopt ions + =毫米

集fencs = UTF-8 GBK

如果v =郎= ^ \ Z H \ \ | \ JA \ \ | \ K O \ ”集amb iwi dth =双endif

如果有win32

源vimruntime美元/ delmenu.vim

源vimruntime美元/ menu.vim

语言信息zh_cn.utf-8endif

其他的echoerr “对不起这个版本G Vim不是+ multi_byte”编译endif

“缓冲区操作快捷方式nnoremap < c-return > bnext <cr>nnoremap < c-s-return > bprevious <cr>

操作快捷方式”选项卡nnoremap < c-tab > tabnext <cr>nnoremap < c-s-t ab > tabprev <cr>

“关于选项卡的快捷键

“地图TN tabnext <cr>

“地图TP tabprevious <cr>

“地图TD t abnew。 <cr>

图注 tabedit

“地图TC tabclose <cr>

“窗口分割时进行切换的按键热键需要连接两次比如从下方窗口移动

“光标到上方窗口需要< > < > K C-W节约非常麻烦现在重映射为< C-K >切换的

“时候会变得非常方便。nnoremap < > < > H C-W C-H nnoremap < > < > J GJ C-W nnoremap < > < > K C-K节约nnoremap < > < > L C-L C-W

“一些不错的映射转换语法如果在一个文件中混合了不同语言时有用nnor emap <领导者> 1设置文件类型= XHTML <cr>nnoremap <领导者> 2设置文件类型= CSS <cr>nnoremap <领导者> 3设置文件类型= JavaScript <cr>

nnoremap <领导者> 4设置文件类型为PHP <cr>

“设置文件格式为UNIX、 DOS、 Mac

“Nmap <领袖> FD SE文件格式= DOS <cr>

“<领导者>福 nmap SE文件格式= UNIX <cr>

“使用Ctrl + [我| N | P | CC ]列出|下|以前|跳计数结果“地图> < C-X L <ESC> CL <cr>

“地图> < C-X N <ESC> CN <cr>

“地图> < C-X P <ESC> CP <cr>

“地图> < C-X C <ESC> CC <cr>

“让toHtml产生有语法的HTML CSS

“语法/ 2html Vim、可以用运行时语法/ 2html.vim 让html_use_css = 1

“Python文件的一般设置

比如不要选项卡等autocmd filetype Python集合TabStop = 4 = 4 expandtab shiftwidth

轻云互联-618钜惠秒杀,香港CN2大宽带KVM架构云服务器月付22元,美国圣何塞精品云月付19元爆款!海量产品好货超值促销进行中!

官方网站:点击访问青云互联活动官网优惠码:终身88折扣优惠码:WN789-2021香港测试IP:154.196.254美国测试IP:243.164.1活动方案:用户购买任意全区域云服务器月付以上享受免费更换IP服务;限美国区域云服务器凡是购买均可以提交工单定制天机防火墙高防御保护端口以及保护模式;香港区域购买季度、半年付、年付周期均可免费申请额外1IP;使用优惠码购买后续费周期终身同活动价,价格不...

Virmach:1核/512M1核M1核512M/夏季美国vps促销,年付$7.2,9月更换AMD平台

virmach怎么样?virmach家这几年非常火,从商家的黑五闪购开始,以超低的价格吸引了大批的国人客户,而且商家的机器还是非常稳定的,站长手里的4.75刀年付已经用了两年了,非常稳定,不过商家到国内的线路一般,目前商家新上了夏季优惠促销,价格低到发指,年付7.2美元起,商家反馈将在9月开始更换AMD+NVMe平台,这个消息从年初就有了,不过一直没有更换,目前这个时间也不确定是否准确。点击进入:...

HostKvm - 夏季云服务器七折优惠 香港和韩国机房月付5.95美元起

HostKvm,我们很多人都算是比较熟悉的国人服务商,旗下也有多个品牌,差异化多占位策略营销的,商家是一个创建于2013年的品牌,有提供中国香港、美国、日本、新加坡区域虚拟化服务器业务,所有业务均对中国大陆地区线路优化,已经如果做海外线路的话,竞争力不够。今天有看到HostKvm夏季优惠发布,主要针对香港国际和韩国VPS提供7折优惠,折后最低月付5.95美元,其他机房VPS依然是全场8折。第一、夏...

vim配置为你推荐
域名代理怎样通过卖域名赚钱?美国vps主机美国VPS好?还是香港VPS好?便宜的虚拟主机免费、便宜的虚拟主机哪里有?要好用的 ,速度快的便宜的虚拟主机哪里有便宜的国内虚拟主机?网站空间域名网站空间,域名,操作香港虚拟空间香港空间,香港虚拟主机,香港虚拟空间推荐一家,公司要做一个网站,需要1G的,不限流量的,其它的空间不要香港虚拟空间请大哥帮个忙,介绍可靠的香港虚拟主机?php虚拟空间普通网站需要多大空间?本人新手php学习者,想买个虚拟空间用来放自己做的一些企业站,只是练习用途网站空间租用公司网站租用什么样的网站空间合适虚拟主机管理系统我也想和你学虚拟主机管理系统的操作
虚拟主机控制面板 瓦工 singlehop t牌 linode代购 isatap 512au http500内部服务器错误 轻量 网通服务器ip 什么是刀片服务器 可外链网盘 域名和空间 服务器是干什么的 1g空间 如何安装服务器系统 免费外链相册 视频服务器是什么 韩国代理ip 登陆qq空间 更多