位置: 编程技术 - 正文

linux Vim经典配置一例(linux怎么配置vim)

编辑:rootadmin
有需要的朋友可以参考下。复制代码代码如下:" This is my _vimrc under windows platform " and it can be used on *nix too " all the difference of them is the font setting session " happy Viming, " copyLeft (#) Abruzzi John set linebreak " line break set nocompatible " no compatible set history= " history set ruler set number " line number set hlsearch " highlight search set noincsearch " no in C search set expandtab " expand table set t_vb= "close bell set foldmethod=marker set tabstop=4 " table step set shiftwidth=4 set nobackup " don't backup set smarttab " smart table set smartindent " smart indent set autoindent " auto indent set cindent "cindent set cursorline " hightlight cursor line 高亮光标所在行 " set the back space set backspace=indent,eol,start "这行比较重要,刚接触vim的朋友会发现有时候backspace键删不了文字 colorscheme desert " color scheme let Tlist_Use_Right_Window=0 " for tag_list plugin only let Tlist_File_Fold_Auto_Close=1 " for tag_list plugin only let g:winManagerWindowLayout="FileExplorer|TagList" " for winmanager filetype plugin indent on " filetype setting set completeopt=longest,menu " for code complete " the following function is used for show the status bar on the buttom function! CurrectDir() let curdir = substitute(getcwd(), "", "", "g") return curdir endfunction set statusline= [File] %F%m%r%h %w [PWD] %r%{CurrectDir()}%h %=[Line] %l,%c %= %P " this is a setting of font if has("win") set guifont=Courier_New:h:cANSI endif " make sure that syntax always on if exists("syntax_on") syntax reset else syntax on endif " java complete if has("autocmd") autocmd Filetype java setlocal omnifunc=javacomplete#Complete endif """""""""""""""""""""""""""""""""""""""""""""""""""""" let performance_mode=1 function MySys() if has("win") return "win" elseif has("unix") return "unix" else return "mac" endif endfunction if MySys() == "unix" || MySys() == "mac" set shell=bash else " set win shell endif " set auto read when file is changed from outside if exists("&autoread") set autoread endif " enable the mouse if exists("&mouse") set mouse=a endif " set mapleader let mapleader="," let g:mapleader="," "fast saving nmap <leader>x :xa!<cr> nmap <leader>w :w!<cr> "switch to current directory map <leader>cd :cd %:p:h<cr> " just for fun map <F9> ggVGg? " folding code if exists("&foldenable") set fen endif if exists("&foldlevel") set fdl=0 endif " tag list -- map <F3> :Tlist<cr> "remove the windows ^M windows系统中常常可以看到文本中夹杂着^M这样的控制字符,用此命令删除之 noremap <leader>m :%s/

推荐整理分享linux Vim经典配置一例(linux怎么配置vim),希望有所帮助,仅作参考,欢迎阅读内容。

linux Vim经典配置一例(linux怎么配置vim)

文章相关热门搜索词:linux的vim使用教程,linux怎么配置vim编辑器,linux+vim,linux的vim使用教程,linux+vim,linux+vim,linux vim配置文件,linux+vim,内容如对您有帮助,希望把文章链接给更多的朋友!

linux wc命令应用举例 在Linux下用wc进行计数。返回文件的行数、字数、字节数等。例如:复制代码代码如下:wcwc1.txtwc1.txt输出信息依次:行数字数字节数文件名称。再具体

Linux中后缀名为ko、o、a、so、la的文件介绍 但是为了区分,有些文件还是加了后缀名:1、.ko是kernelobject的缩写,是Linux2.6内核使用的动态连接文件,在Linux系统启动时加载内核模块。2、.o是相当于

linux下使用du命令查找最大的文件的命令 找出在一个path下的最大文件,可以使用du命令:du-sh[dirname|filename]当前目录大小du-sh.当前目录下文件或目录的大小du-sh*显示前十个占用空间最大的文件或

标签: linux怎么配置vim

本文链接地址:https://www.jiuchutong.com/biancheng/362009.html 转载请保留说明!

上一篇:恢复linux下被删除的syslog—/var/log/messages文件方法(linux删除后恢复)

下一篇:linux wc命令应用举例(linux中wc命令的用法)

  • 小规模企业所得税会计分录怎么做
  • 汇算清缴补交所得税会计分录小企业会计政策
  • 上下班出了事故算不算工伤
  • 减免的养老保险怎么走账
  • 小微企业的资产总额看哪里判断的
  • 缴纳的专利年费能退吗
  • 如何让自己公司成为供应商
  • 当期发生的费用
  • 高新研发费的账务处理怎么做?
  • 基建账的年终结转
  • 单位旧电脑处置
  • 小规模免了增值税怎么办
  • 如何辩别这样发票的真伪?
  • 往年计提有误 跨年处理
  • 新会计准则规定资产如何入账
  • 交通费进项税抵扣计算
  • 电子承兑转让怎么撤销
  • 资产负债表与现金流量表的关系
  • 飞鱼星路由器信号有点差怎么办
  • 如何修改windows11开机密码
  • 总分类账和明细账
  • Win10 21H1 Build 19043.1200(KB5005101)预览版更新了哪些内容(附更新日志)
  • 前端框架view
  • 汇算清缴应补税额小于400
  • 结转完工产品成本计算公式
  • 企业增加实收资本流程
  • 流动资产损失
  • 利用python自动填问卷
  • scp命令 基于SSH协议远程复制文件
  • 命令行find
  • 工作服钱可否收取
  • 往来款的账务处理
  • 收款收据可以盖业务章吗
  • 劳务派遣公司账务处理
  • css中字符间距怎么设置
  • 帝国cms模板文件放在哪里
  • 企业所得税预缴可以不交吗
  • sql server备份数据还原不了怎么办
  • MongoDB aggregate 运用篇个人总结
  • 主营业务收入含义
  • 外企研发中心
  • 长期股权投资的交易费用计入哪里
  • 企业法人需要本人到场吗
  • 工程材料发票备注要求
  • Windows7下Microsoft SQL Server 2008安装图解和注意事项
  • 转让不动产增值税征收管理办法
  • 财务费用包含了利息费用吗
  • 自产赠送视同销售的成本如何确定?
  • 固定资产怎么入费用
  • 发票当月没开
  • 收购免税农产品的进项税率
  • 饭店现金账怎么记账
  • 餐饮行业月末结转成本怎么算
  • mysql复制命令
  • 下载windows vista
  • win2003 enterprise序列号
  • win8.1操作系统关闭驱动数字签名
  • ubuntuiso
  • win1020th2
  • win10在哪里找
  • 如何使用u盘安装linux
  • win7系统重装后u盘读不出来
  • linux服务器日志文件在哪里
  • win7的cpu怎么看
  • win7如何显示桌面
  • win10恢复到win7系统
  • 安卓app开发框架模板
  • 批处理 dp0
  • tensorflowoom
  • unity3D游戏开发
  • unity手机游戏开发教程
  • python数据导出
  • linux下socket编程常用头文件(推荐)
  • shell脚本ne
  • android 动态化方案
  • python教程目录
  • 中国个人所得税是多少?
  • 怎么判断买的盐是不是真的
  • 国家税务总局办公室电话
  • 上海个税100万元工资多少
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设