1、vim ~/.vimrc
set nocompatible //生命是vim而不是vi
syntax on //语法高亮
et t_CO=256
set linespace=16
set autowriteall
set tabstop=8
set expandtab
set softtabstop=4
set shiftwidth=4
set backspace=indent,eol,start
2、http://draculatheme.com/ 各个工具主题
3、配置git:
alias gs="git status"
alias gc="git commit -m "
alias gaa="git add ."
alias gp="git push"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)'"
4、item2自动提示
https://github.com/zsh-users/zsh-autosuggestions
4.1 因为我们用的ohmyzsh,所以执行:
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
4.2 打开vim ~/zshrc,找到plugins,加入代码如下:
plugins=(
...
zsh-autosuggestions
)
配置vim编辑器、git常用别名、item2自动提示
最新推荐文章于 2023-08-12 21:35:42 发布