位置: 编程技术 - 正文

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

  • 收入纳税数据是什么意思
  • 注册税务师报名条件
  • 税控盘为什么要年年交服务费
  • 运输费全额抵扣什么意思
  • 土增税清算时统借统还利息能否据实扣除
  • 个体工商户能否开13的专票
  • 门诊药房主要业务
  • 现金折扣是否可抵税
  • 价外费用纳税义务发生时间
  • 以旧换新如何确认收入
  • 票据占比不得超过各项贷款的
  • 公户转私户的钱几天能到账
  • 公司没有收入没开发票
  • 个体户缴纳个人经营所得税分录
  • 广告宣传费扣除标准30%是什么?
  • 自然人股东转让股权如何避税
  • 损失性费用的会计科目有
  • 对方给我们开发票
  • 发票认证只认证进项吗
  • 生产车间的费用会计分录
  • 以租代购如何做账
  • 快速迅雷
  • 医生规培生补贴每年多少钱
  • 可供出售金融资产现在叫什么
  • 公司转让股权交不交增值税
  • pavsrv50.exe - pavsrv50进程管理信息
  • phpunicode
  • 报错500是什么意思
  • 研发费用加计扣除新税收政策
  • 金融商品转让业务包括
  • 民间非营利组织会计制度
  • thinkphp import
  • vuecli项目实战
  • php使用pdo连接数据库
  • Laravel+jQuery实现AJAX分页效果
  • 残疾证哪里发
  • c语言中fopen函数的头文件
  • 如何修改php.ini
  • 现金流量表第四个期初现金余额怎么填
  • 专家咨询费比例不能超过多少
  • pycharm pypy
  • 织梦cms官网
  • 国税实名认证手机号如何解绑
  • 事故赔偿给谁
  • 增值税征收类型
  • 买一赠一怎么做账
  • 收电商费会判刑吗
  • 长期股权投资的成本法和权益法区别
  • 购买不良债权如何追偿
  • 可以先抵扣下个月工资吗
  • 金税盘服务费可以抵扣增值税进项税额吗
  • 百旺金赋服务费可以不交吗
  • 预付账款无法取得发票如何处理
  • 材料运费计入什么科目
  • 会计核算的主要环节
  • mysql完整教程
  • mysql服务无效
  • win8已共享但别电脑无权限
  • 电脑开机显示xp后无反应
  • win8更新一直停着不动
  • ubuntu设置关闭按钮在右侧
  • mac插hdmi没画面
  • windows自带搜索引擎
  • xp系统桌面图标怎么设置
  • centos7.4安装
  • win8开始界面如何设置成win7
  • wrme.exe是什么
  • win7系统电脑开热点
  • Linux服务器端口状态
  • linux操作系统配置网络
  • excel的exceladdinrd加载项出现问题
  • dos命令遍历文件
  • jQuery formValidator表单验证
  • javascript基础题目
  • 圣诞树代码html
  • 农商银行股权分红如何计算
  • 事前监督的名词解释
  • 外汇业务税务备案
  • 福州市税务局领导班子成员名单
  • 个人所得税税前扣除是什么意思
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设