位置: 编程技术 - 正文

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命令的用法)

  • 税务申报后就可以清盘了吗
  • 应纳税额等于已缴税额
  • 工资的计提与结转怎么算
  • 发票验旧是验旧已开发票还是未开发票
  • 机械设备关税税率多少
  • 以前暂估的成本,年终要冲销怎么做账
  • 汇算清缴退税可以不退吗
  • 电子发票和增值税电子普通发票的区别
  • 商业承兑汇票托收凭证怎么做分录
  • 预缴增值税为什么记借方
  • 土地储备机构也称为什么
  • 企业年金的个人账户怎么查
  • 货车挂靠企业需要交增值税吗?
  • 银行收付款通知短信
  • 商品进销差价是资产类账户,其抵减的账户是
  • 停车场收入怎么做账
  • 营改增要交增值税吗
  • 退税勾选后如何开红字
  • 固定资产报废需要税务备案吗
  • 纳税人签章填什么
  • 2017年7月1日开始实施的税法新规
  • 二手房交易需要多长时间?
  • 税收筹划的定义,有哪些筹划的方法
  • 平均增长率的计算公式初中
  • 预缴水利基金如何申报?
  • 坏账处理的所得税税率
  • 汇算清缴的费用合计是什么
  • 公园门票可以开发票吗
  • 公司注销了帐户钱能办款
  • 外来原始凭证是指企业财会部门从外部购入的原始凭证
  • 企业筹建期间的广告费和业务宣传费
  • 购货优惠的会计科目
  • windows11入门
  • php转word
  • 资产处置损益会计科目
  • 相关企业之间的竞争
  • 分配股利怎么算
  • 微信小程序分包加载
  • 什么是跨域以及跨境电商
  • 转让费交什么税
  • php 替换函数
  • 其他经营收益怎么算
  • codeigniter 教程
  • 农业企业所得税是免税的吗
  • 销售方开具的红字信息表
  • 企业年报未报会有什么后果
  • 租赁业务
  • 递归是从底向上逐层计算的
  • 专项应付款的账务处理
  • 主营业务税金及附加包括增值税吗
  • 营业外支出增加记借方还是贷方
  • 投资收益记账
  • 进项发票未认证
  • 计提环保税的会计分录
  • 缴纳的增值税怎么做账
  • 会计凭证是对外公布的资料吗
  • 商品库存明细账
  • 理解 成为 超越梗
  • 巧用护手霜保养皮衣
  • centos 界面安装
  • fedora系统安装教程
  • osx10.11.6版本如何
  • win7的开始菜单在哪里
  • windows8怎么设置开机启动项
  • cocos2dx schedule
  • Cocos2d-x +Android + Windows 7
  • vim安装ycm
  • python os.path模块
  • Python中文分词的第三方库
  • unity出现bug
  • shell获取命令报错信息
  • react jss
  • nodejs怎么读
  • vue购物商城
  • 举例详解民法典第994条
  • python 元类的作用
  • 怎样看业务序号
  • 签订税务三方协议
  • 上海市国家税务局
  • 增+6=多少
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设