设置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

蓝速数据(58/年)秒杀服务器独立1核2G 1M

蓝速数据金秋上云季2G58/年怎么样?蓝速数据物理机拼团0元购劲爆?蓝速数据服务器秒杀爆产品好不好?蓝速数据是广州五联科技信息有限公司旗下品牌云计算平台、采用国内首选Zkeys公有云建设多种开通方式、具有IDC、ISP从业资格证IDC运营商新老用户值得信赖的商家。我司主要从事内地的枣庄、宿迁、深圳、绍兴、成都(市、县)。待开放地区:北京、广州、十堰、西安、镇江(市、县)。等地区数据中心业务,均KV...

享有云:美国BGP云服务器低至20元/月起,首月打折;香港2核2G2M仅50元/月起

享有云怎么样?享有云是一家新的国内云服务器商家,目前提供国内、香港及海外地区的云服务器,拥有多线路如:BGP线路、CN2线路、高防等云服务器,并且提供稳定、安全、弹性、高性能的云端计算服务,实时满足您的多样性业务需求。目前,美国bgp云服务器,5M带宽,低至20元/月起,270元/年起,首月打折;香港2核2G2M仅50元/月起,450元/年起!点击进入:享有云官方网站地址享有云优惠活动:一、美国B...

湖北22元/月(昔日数据)云服务器,国内湖北十堰云服务器,首月6折

昔日数据怎么样?昔日数据新上了湖北十堰云服务器,湖北十堰市IDC数据中心 母鸡采用e5 2651v2 SSD MLC企业硬盘 rdid5阵列为数据护航 100G高防 超出防御峰值空路由2小时 不限制流量。目前,国内湖北十堰云服务器,首月6折火热销售限量30台价格低至22元/月。(注意:之前有个xrhost.cn也叫昔日数据,已经打不开了,一看网站LOGO和名称为同一家,有一定风险,所以尽量不要选择...

vim配置为你推荐
全能虚拟主机那家虚拟主机服务商比较不错,比较有名?asp主机sulzer主机类型有哪些域名注册服务万网域名注册服务怎么样?代理主机主机做成代理服务器,其他局域网内的电脑必须通过我的这个网络出去网站空间域名网站制作 域名和空间国外主机空间可以购买国外主机(空间一样吗?)来做私服吗?虚拟空间免费试用目前哪里有免费试用的虚拟主机 或者服务器用啊?国外网站空间怎么查看一个网站的空间是在国内还是在国外啊?windows虚拟主机在windows 系统上装虚拟机有什么好的建议域名网站域名和网址一样吗?
二级域名 浙江vps ddos liquidweb burstnet 香港服务器99idc 网站保姆 免费博客空间 大容量存储 hostloc 腾讯实名认证中心 世界测速 服务器合租 免费高速空间 美国堪萨斯 东莞服务器 免费私人服务器 美国独立日 独享主机 服务器维护 更多