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

JustHost,最新高性价比超便宜俄罗斯CN2 VPS云服务器终身8折优惠,最低仅8元/月起,200Mbps带宽不限流量,五大机房自助自由切换,免费更换IP,俄罗斯cn2vps怎么样,justhost云服务器速度及综合性能详细测评报告

主机参考最新消息:JustHost怎么样?JustHost服务器好不好?JustHost好不好?JustHost是一家成立于2006年的俄罗斯服务器提供商,支持支付宝付款,服务器价格便宜,200Mbps大带宽不限流量,支持免费更换5次IP,支持控制面板自由切换机房,目前JustHost有俄罗斯5个机房可以自由切换选择,最重要的还是价格真的特别便宜,最低只需要87卢布/月,约8.5元/月起!just...

百驰云(19/月),高性能服务器,香港三网CN2 2核2G 10M 国内、香港、美国、日本、VPS、物理机、站群全站7.5折,无理由退换,IP免费换!

百驰云成立于2017年,是一家新国人IDC商家,且正规持证IDC/ISP/CDN,商家主要提供数据中心基础服务、互联网业务解决方案,及专属服务器租用、云服务器、云虚拟主机、专属服务器托管、带宽租用等产品和服务。百驰云提供源自大陆、香港、韩国和美国等地骨干级机房优质资源,包括BGP国际多线网络,CN2点对点直连带宽以及国际顶尖品牌硬件。专注为个人开发者用户,中小型,大型企业用户提供一站式核心网络云端...

特网云57元,香港云主机 1核 1G 10M宽带1G(防御)

特网云官網特网云服务器在硬件级别上实现云主机之间的完全隔离;采用高端服务器进行部署,同时采用集中的管理与监控,确保业务稳定可靠,搭建纯SSD架构的高性能企业级云服务器,同时采用Intel Haswell CPU、高频DDR4内存、高速Sas3 SSD闪存作为底层硬件配置,分钟级响应速度,特网云采用自带硬防节点,部分节点享免费20G防御,可实现300G防御峰值,有效防御DDoS、CC等恶意攻击,保障...

vim配置为你推荐
网站空间租赁网站空间租用好一些还是云主机好一些?info域名注册info域名什么时候出现的?vps试用请问有什么网站可以提供免费vps试用的?想用它来刷一下外国pt站网站域名各种网站的域名海外域名怎么挑选合适的国外域名?php虚拟空间php虚拟主机空间如何连接mysql虚拟空间哪个好哪个网络服务商的虚拟空间服务比较好呢?美国网站空间我想买个国外的网站空间,那家好,懂的用过的来说说美国网站空间美国,韩国,香港网站空间虚拟主机是什么什么是虚拟主机
播放vps上的视频 国外免费域名网站 老域名全部失效请记好新域名 新世界机房 linode 韩国空间 香港机房托管 Hello图床 日本空间 铁通流量查询 阿里校园 免费申请个人网站 河南移动m值兑换 如何用qq邮箱发邮件 四川电信商城 视频服务器是什么 数据库空间 美国迈阿密 空间申请 免费稳定空间 更多