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

注册做什么96%可以干啥,常用的7个常用的国内国外域名注册服务商_云服务器可以干什么

日前,国内知名主机服务商阿里云与国外资深服务器面板Plesk强强联合,推出 阿里云域名注册与备案、服务器ECS购买与登录使用 前言云服务器(Elastic  只需要确定cpu内存与带宽基本上就可以了,对于新手用户来说,我们在购买阿里云服务申请服务器与域名许多云服务商的云服务器配置是弹性的 三周学会小程序第三讲:服务 不过这个国外服务器有点慢,可以考虑国内的ngrokcc。 ngrokcc...

[6.18]IMIDC:香港/台湾服务器月付30美元起,日本/俄罗斯服务器月付49美元起

IMIDC发布了6.18大促销活动,针对香港、台湾、日本和莫斯科独立服务器提供特别优惠价格最低月付30美元起。IMIDC名为彩虹数据(Rainbow Cloud),是一家香港本土运营商,全线产品自营,自有IP网络资源等,提供的产品包括VPS主机、独立服务器、站群独立服务器等,数据中心区域包括香港、日本、台湾、美国和南非等地机房,CN2网络直连到中国大陆。香港服务器   $39/...

华纳云不限流量¥324/年,香港双向CN2(GIA)云服务器/1核1G/50G存储/2Mbps

华纳云(HNCloud Limited)是一家专业的全球数据中心基础服务提供商,总部在香港,隶属于香港联合通讯国际有限公司,拥有香港政府颁发的商业登记证明,保证用户的安全性和合规性。 华纳云是APNIC 和 ARIN 会员单位。主要提供香港和美国机房的VPS云服务器和独立服务器。商家支持支付宝、网银、Paypal付款。华纳云主要面向国内用户群,所以线路质量还是不错的,客户使用体验总体反响还是比较好...

vim配置为你推荐
免费虚拟主机急:哪个网站提供免费的虚拟主机,谢谢。域名注册公司国内正规的国别域名注册商是哪家?域名服务域名服务器是什么?免费vps服务器有没有便宜的vps,最好是免费的免费网站空间免费个人网站 空间大连虚拟主机大连横展网络科技有限公司怎么样?北京虚拟主机北京服务好的虚拟主机代理商介绍几个?东莞虚拟主机在东莞服务器租用怎么选择新加坡虚拟主机如何购买godaddy的新加坡主机?域名网站有免费的网站域名吗
浙江vps 中国万网域名 wordpress主机 windows主机 韩国电信 hostker 刀片服务器的优势 qq云端 安徽双线服务器 华为云服务登录 xuni ncp web服务器 asp介绍 删除域名 内存 云主机 电脑主机声音大 sockscap教程 免费空间申请 更多