ubuntu安装vim编辑工具

Linux环境下Ubuntu系统中下载gvim及相关配置 分享一下Linux环境下gvim的下载以及自己的相关配置,也方便自己以后重新进行虚拟机的相关配置时进行参考,相关代码带有简略注释,Ubuntu版本18.04.6 阅读详情

想用vim编辑文件出现如下问题,提供可行的解决办法

root@linux-desktop:/home/linux# vim
程序“vim”已包含在下列软件包中:
* vim
* vim-gnome
* vim-tiny
* vim-gtk
* vim-nox
请尝试:apt-get install <选定的软件包>
root@linux-desktop:/home/linux# apt-get install vim #这句表示安装
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会安装下列额外的软件包:
vim-runtime
建议安装的软件包:
ctags vim-doc vim-scripts
下列【新】软件包将被安装:
vim vim-runtime
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 0B/6,572kB 的软件包。
解压缩后会消耗掉 27.1MB 的额外空间。
您希望继续执行吗?[Y/n]y #输入y开始下载安装。
选中了曾被取消选择的软件包 vim-runtime。
(正在读取数据库 ... 系统当前总共安装有 147438 个文件和目录。)
正在解压缩 vim-runtime (从 .../vim-runtime_2%3a7.2.330-1ubuntu3_all.deb) ...
正在添加 “diversion of /usr/share/vim/vim72/doc/help.txt to /usr/share/vim/vim72/doc/help.txt.vim-tiny by vim-runtime”
正在添加 “diversion of /usr/share/vim/vim72/doc/tags to /usr/share/vim/vim72/doc/tags.vim-tiny by vim-runtime”
选中了曾被取消选择的软件包 vim。
正在解压缩 vim (从 .../vim_2%3a7.2.330-1ubuntu3_i386.deb) ...
正在处理用于 python-gmenu 的触发器...
Rebuilding /usr/share/applications/desktop.zh_CN.utf8.cache...
正在处理用于 man-db 的触发器...
正在处理用于 python-support 的触发器...
正在设置 vim-runtime (2:7.2.330-1ubuntu3) ...
Processing /usr/share/vim/addons/doc

正在设置 vim (2:7.2.330-1ubuntu3) ...
update-alternatives: 使用 /usr/bin/vim.basic 来提供 /usr/bin/vim (vim),于 自动模式 中。
update-alternatives: 使用 /usr/bin/vim.basic 来提供 /usr/bin/vimdiff (vimdiff),于 自动模式 中。
update-alternatives: 使用 /usr/bin/vim.basic 来提供 /usr/bin/rvim (rvim),于 自动模式 中。
update-alternatives: 使用 /usr/bin/vim.basic 来提供 /usr/bin/rview (rview),于 自动模式 中。
update-alternatives: 使用 /usr/bin/vim.basic 来提供 /usr/bin/vi (vi),于 自动模式 中。
update-alternatives: 使用 /usr/bin/vim.basic 来提供 /usr/bin/view (view),于 自动模式 中。
update-alternatives: 使用 /usr/bin/vim.basic 来提供 /usr/bin/ex (ex),于 自动模式 中。

root@linux-desktop:/home/linux#

之后我运行了一下vim,成功了。

其实就是以root用户运行: sudo apt-get install vim

在Ubuntu上配置Vim Vim是一个强大的文本编辑器,广泛用于程序开发和系统管理。在Ubuntu上配置Vim可以帮助开发人员更高效地编写代码。以下是在Ubuntu上配置Vim的详细步骤。 阅读详情

相关推荐

渗透测试实战—云渗透(AK/SK泄露)

渗透测试实战思路分享:getshell方法及横向移动方法,云安全(AK/SK泄露)

网安日记本的博客 4051

在Ubuntu中下载vim编辑器

本文解释了如何在Ubuntu中安装vim编辑器

2301_79842262的博客 6088

基于51单片机的多功能智能路灯控制系统(仿真+代码+原理图)

智能路灯控制系统主要由51单片机最小系统+1602显示模块+DS1302时钟模块+光强检测模块+按键输入模块+声光报警模块+LED照明模块+状态检测电路+人体车辆红外检测模块组成。能实现以下功能: 1.能够按键设定系统时间、工作时间、光照阈值 2.工作时间内路灯点亮,凌晨12点后路灯关闭,有人或车通过是,路灯点亮10s 3.非工作时间光照强度低于阈值,路灯点亮 4.能够检测系统工作状态,路灯应亮未亮,声光报警 5.具备手动控制,能够切换自动/手动控制功能

u012759563的博客 8178

Linux 之 Ubuntu 上 Vim 的安装、配置、常用命令的简单整理

Linux/开发的一些知识整理,方便后期遇到类似的问题,能够及时查阅使用。本节介绍,Ubuntu 上 vim 的安装、配置、常用命令的简单整理。如果有不足之处,欢迎指出,或者你有更好的方法,欢迎留言。Vim是从 vi 发展出来的一个文本编辑器。代码补全、编译及错误跳转等方便编程的功能特别丰富,在程序员中被广泛使用,和Emacs并列成为类Unix系统用户最喜欢的文本编辑器。[1]vim的设计理念是命令的组合。

仙魁XAN 2万+

ZynqMP双核通信避坑指南:Linux驱动+裸机固件协同开发实录

本文详细解析了Xilinx ZynqMP芯片中APU与RPU双核通信的技术实现,重点介绍了通过IPI中断实现Linux驱动与裸机固件协同开发的实战经验。内容涵盖硬件寄存器配置、Linux驱动开发、RPU裸机程序编写以及双核调试技巧,为开发者提供了一套完整的工程化解决方案,帮助规避常见开发陷阱。

weixin_29168153的博客 126

cesium 高程数据使用

cesium 高程数据使用高程数据下载高程数据切片简单数据服务 高程数据下载 使用地理空间数据云平台免费提供的高程数据。地理空间云平台 点击列表中的下载得到数据压缩包。例如:ASTGTM2_N22E114.zip 高程数据切片 使用cesium实验室工具对下载得到的压缩包进行切片。cesium实验室 切片得到的文件夹目录。 简单数据服务 使用nodejs的koa启动简单的资源服务。koajs 项目根目录新建data文件夹,在新建dem文件夹放高程数据。 注意目录自行更换,这里是./data/dem

哎哟这个凉白白的博客 1812

在Ubuntu下安装vim

安装步骤: 1. 打开控制台,也可用快捷键 CTRL+ALT+T打开,在控制台执行以下命令 2. 更新安装包,执行命令: sudo apt update 3. 搜索vim安装包,执行命令: sudo apt search vim 4. 安装vim,执行命令:sudo apt install vim 5. 确认vim版本,执行命令:vim --version 成功 ;)

To be a better man 8569

用Pixel5玩转AOSP:从零开始定制Android13系统(含GMS集成方案)

本文提供了一份详尽的Pixel 5 AOSP定制指南,涵盖从环境搭建、源码下载、系统编译到刷机的完整流程。重点解决了原生AOSP缺失Google移动服务(GMS)的难题,分享了从官方镜像提取并集成GMS组件的实战方案,助你打造独一无二的Android 13系统。

sam99的博客 527

Ubuntu之vim:vim编辑工具的简介、安装、使用方法之详细攻略

Ubuntu之vim:vim编辑工具的简介、安装、使用方法之详细攻略 目录 vim编辑工具的简介 vim编辑工具的安装 vim的配置 vim编辑工具的使用方法 vim编辑工具的简介 VI是LINUX下最老牌的编辑工具,而VIM则是VI的升级版本,是LINUX系统必备工具。vim是文本编辑器,在代码补完、编译及错误跳转等方便编程的功...

头部AI社区如有邀博主AI主题演讲请私信—心比天高,仗剑走天涯,保持热爱,奔赴向梦想!低调,专注,谦虚,自律,反思,成长,还算比较正能量的博主,公益免费传播…内心特别想在AI界做出一些可以推进历史进程影响力的技术(兴趣使然,有点小情怀,也有点使命感呀 6971

基于ResNet-50的猫狗分类训练

基于ResNet-50的猫狗分类python训练

weixin_46352497的博客 1004

AI应用工程师面试指南与参考答案

摘要:AnkerAI应用工程师职位面向2024/25届毕业生,要求计算机相关专业背景,强调工程实现与技术探索能力。岗位职责包括全栈开发、AI技术整合(如大模型、图像识别)、团队AI赋能及系统优化。职位更看重编程实践能力(Python/Java等)和学习潜力,而非单纯算法知识。成功候选人将参与智能化产品开发,获得导师指导和技术成长机会。面试准备应聚焦项目经验展示、业务需求理解和技术解决方案能力,通过结构化回答和实操案例体现工程思维与创新潜力。

郑伟强dev的专栏 410

Ubuntu 安装Vim编辑工具

安装命令, apt-get install vim-gtk 如下图: 等待最后安装完成后输入 vi命令,并按tab键:

闲来无聊 268

【算能】TPU(张量处理单元)的深度解析

算能(SOPHGO)作为国产AI芯片领域的核心企业,其TPU(张量处理单元)以高能效比与全场景覆盖能力为核心竞争力,专注于边缘计算与行业垂直领域的AI推理加速。

浩瀚之水的专栏 1548

Ubuntu乌班图安装VIM文本编辑器工具

从centos转到Ubuntu发现默认安装没有vi

lhmx557的博客 2512

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

Ubuntu Linux使用前准备动作 安装vim编辑工具

Ubuntu Linux 默认没有安装 vim 工具,但它自带了一个简化版的 vi 编辑器。vi 编辑器和 vim 编辑器有相似之处,不过 vim 功能更加强大,如语法高亮、多级撤销、代码补全等功能是 vim 独有的。如果需要使用 vim,可以通过系统自带的软件包管理器进行安装。

IT_zhangsan 746

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

centos7和ubuntu中安装vim编辑工具

centos中安装vim yum -y install vim* ubuntu中安装vim sudo apt-get install vim

总结复盘,才能不迷失自己! 275

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Linux工具篇 | Ubuntu安装vim编辑器并配置支持中文

一、安装vim编辑器 $ sudo apt-get install vim-gtk 二、配置vim支持中文 $ sudo vim /etc/vim/vimrc 在 vimrc 配置文件内容末尾添加以下内容: set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 ...

Systemcall名屋 2004

ubuntu实用工具安装

1、安装flameshot 2、打开截图 3、便捷使用:通过安装列表将其图标加入收藏夹,点击或点击+选择进行便捷截图我选择的安装方法是先下载可安装在ubuntu系统下的.deb软件包,再进行安装,双击下载的安装包,进入如下类似界面点击install按钮:安装完成: 1、安装vim: 2. Vim 的模式:3. 基本导航:4. 插入文本:5. 保存和退出:6. 复制、剪切和粘贴:7. 撤销和重做:8. 搜索和替换:9. 分屏和标签页:这是 Vim 的一些基本用法,学习 Vim 可能需要一些时间,但

qq_58838490的博客 935

ubuntu中vi及vim的设置

1. 安装ubuntu后的默认启动方式更改通过下面的操作可把windows XP改为默认启动系统启动ubuntu后,输入:sudo gedit /boot/grub/menu.lst然后找到default 0然后往下看,找你想默认启动的操作系统!修改default 后面的数字,0对应第一个,1对应第二个,依次往下!把0改为4就可以了!2. ubuntu中安装简体中文语言包在安装过程发生网络中断或跳

tanzhangwen的专栏 1067

在ubuntu 20.04上安装vim 8 并且配置vim成为可视化工具

以备不时之需 安装软件 sudo apt install vim sudo apt install cscope sudo apt install ctags sudo apt install git sudo apt install build-essential cmake python-dev python3-dev 下载vimrc并 安装插件管理工具vundle.vim git clone https://github.com/VundleVim/Vundle.vim.git ~/

wanghuasn911的博客 9049

Ubuntu更新vim编辑器,及vi常用命令

刚安装Ubuntu系统时,发现用命令行打开文件时,内容特别乱并且不容易观看,所以将其更新一下,可以下载vim编辑器(vim可以用不同的颜色加亮代码)。 一、更新vim 1.  卸载旧版的vi:sudo apt-get remove vim-common ; 2.  安装新版的vim:sudo apt-get install vim 。 二、vim常用命令 1.  打开fi

katrinawj的博客 8645

ubuntu安装vim解决无法安装的问题

ubuntu安装 https://blog.youkuaiyun.com/qq_34759481/article/details/81185165 vmtools安装 https://blog.youkuaiyun.com/qq_34759481/article/details/81384120 ubuntu上网 https://blog.youkuaiyun.com/qq_34759481/article/details...

飞鸟慕鱼的博客 5634

ubantu下gcc编译器的安装、vim安装以及第一个helloworld的测试

1:gcc编译器的安装 查阅了网上的sudo apt-get  build-depgcc 但是发现上述命令是无效的,运行结果如下图所示。 故采用以下命令进行gcc编译器的安装: sudo apt-get  install  build-essential 查看安装的gcc版本号: gcc --version 也可以用gcc -v来查看版本号。 2、vim的安装和输入

ljp1919的专栏 4760

玩转vim之Ubuntu下创建vim+Taglist+cscope+ctags组合编辑器

玩转vim之Ubuntu下创建vim+Taglist+cscope+ctags组合编辑器 各个插件更详细的信息可以参考各个插件在本blog的文章。 Refer:http://blog.youkuaiyun.com/longerzone/article/details/7789581 Ubuntu给我们安装软件提供了很大的便利,比如说,安装vim,我们可以直接使用“sudo apt-get install

bellwhl的专栏 806

Ubuntu下vim安装ctags(tags)工具

ubuntu下安装ctags工具 ctags工具全称Generate tag files for source code。扫描指定的源文件,找出其中包含的语法元素,并把找到的相关的内容记录下来,这样在代码浏览和查找时就可以利用这些记录实现查找和跳转的功能。 一、安装ctags工具 sudo apt-get install ctags 二、建立索引文件 在想要建立索引文件的文件夹目录下执...

板蓝根蜀黍的博客 1767
上一篇: 图形编程中释放资源的几个函数
下一篇: Linux必学的60个命令(1)-安装与登陆
LuckyJiang.2021
博客等级 码龄15年 217粉丝 199原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

LuckyJiang.2021

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值