将以下内容加入~/.vimrc中,记得先备份
ifv:progname=~?"evim"
finish
endif
"UseVimsettings,ratherthenVisettings(muchbetter!).
"Thismustbefirst,becauseitchangesotheroptionsasasideeffect.
setnocompatible
"allowbackspacingovereverythingininsertmode
setbackspace=indent,eol,start
ifhas("vms")
setnobackup"donotkeepabackupfile,useversionsinstead
else
setbackup"keepabackupfile
endif
sethistory=50"keep50linesofcommandlinehistory
setruler"showthecursorpositionallthetime
setshowcmd"displayincompletecommands
setincsearch"doincrementalsearching
"ForWin32GUI:remove't'flagfrom'guioptions':notearoffmenuentries
"let&guioptions=substitute(&guioptions,"t","","g")
"Don'tuseExmode,useQforformatting
mapQgq
"Thisisanalternativethatalsoworksinblockmode,butthedeleted
"textislostanditonlyworksforputtingthecurrentregister.
"vnoremapp"_dp
"Switchsyntaxhighlightingon,whentheterminalhascolors
"Alsoswitchonhighlightingthelastusedsearchpattern.
if&t_Co>2||has("gui_running")
syntaxon
sethlsearch
endif
"Onlydothispartwhencompiledwithsupportforautocommands.
ifhas("autocmd")
"Enablefiletypedetection.
"Usethedefaultfiletypesettings,sothatmailgets'tw'setto72,
"'cindent'isoninCfiles,etc.
"Alsoloadindentfiles,toautomaticallydolanguage-dependentindenting.
filetypepluginindenton
"Puttheseinanautocmdgroup,sothatwecandeletethemeasily.
augroupvimrcEx
au!
"Foralltextfilesset'textwidth'to78characters.
autocmdFileTypetextsetlocaltextwidth=78
"Wheneditingafile,alwaysjumptothelastknowncursorposition.
"Don'tdoitwhenthepositionisinvalidorwheninsideaneventhandler
"(happenswhendroppingafileongvim).
autocmdBufReadPost*
/ifline("'/"")>0&&line("'/"")<=line("$")|
/exe"normalg`/""|
/endif
augroupEND
else
setautoindent"alwayssetautoindentingon
endif"has("autocmd")
分享到:
相关推荐
通过gateone的安装实现的web端的ssh远程连接linux技术
ubuntu的SSH远程登陆
使用web结合python开发的ssh远程连接linux工具方便与安全管理机器
ssh远程连接工具,直接解压即可使用。
远程连接服务器必备工具 SSH,远程连接,远程服务器,远程控制,ssh
Python – paramiko 模块远程执行ssh 命令 nohup 不生效的问题解决 1、使用 paramiko 模块ssh 登陆到 linux 执行nohup命令不生效 # 执行命令 def command(ssh_config, cmd, result_print=None, nohup=False): ssh ...
JuiceSSH 是 Android 手机或者平板上一款的 SSH 远程登录软件。 出门在外,应急必备工具.
该文档主要用于设置SSH远程连接客户端编码的编码格式,使中文也可以正常显示。
做深度学习的同学都知道,显卡资源还是比较昂贵的...这时,VSCode+SSH就可以在一定程度上解决这个问题。 总的来说,本文档手把手教你如何脱离向日葵、TeamViewer等远程软件,实现多人分别在自己的电脑上同时控制主机。
ssh工具 用于连接远程服务器 linux 系统 解压 安装即可使用
ssh远程连接linux系统工具,免费,操作简单,命令行以及文件上传下载。本人用于远程云服务器,亲测很实用,推荐!!!
SSH远程ubuntu
华三设备ssh配置,华三设备开启ssh远程登录的配置相关命令。
本文主要介绍三种方法,在Mac下使用SSH连接远程Linux服务器。 方法一:使用终端 1.打开终端,点击新建远程连接 2.点击加号,然后添加自己服务器的IP地址 3.点击右侧的服务器,然后在下方输入用户名,选择最下方的 ...
ssh 网管必备 windows下连接linux的ssh远程连接工具,解压即用带破解。
ssh远程登录辅助工具ssh远程登录辅助工具ssh远程登录辅助工具ssh远程登录辅助工具ssh远程登录辅助工具ssh远程登录辅助工具ssh远程登录辅助工具
Centoe 下linux远程桌面描述 ,Centos远程 SSH登录
ssh远程控制谁用谁知道!
ssh远程连接其他主机并执行命令,只能执行少量命令。也可自行优化改进