arch linux vim安装教程,Archlinux安装vim并配置颜色

本文详细介绍了在Arch Linux系统中如何通过pacman命令安装Vim,并提供了如何编辑配置文件/etc/profile和/etc/vimrc以优化Vim使用的步骤,包括设置路径、颜色方案和常用快捷键。
摘要由CSDN通过智能技术生成

Archlinux安装vim跟安装其他软件类似,仅需执行如下命令即可:

pacman -S vim

之后修改一下两个文件: /etc/profile 以及 /etc/vimrc

修改后的 profile文件如下:

# /etc/profile

#Set our umask

umask 022

# Set our default path

PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"

export PATH

# Load profiles from /etc/profile.d

if test -d /etc/profile.d/; then

for profile in /etc/profile.d/*.sh; do

test -r "$profile" && . "$profile"

done

unset profile

fi

# Source global bash config

if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then

. /etc/bash.bashrc

fi

# Termcap is outdated, old, and crusty, kill it.

unset TERMCAP

# Man is much better than us at figuring this out

unset MANPATH

export L

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值