打造Python开发工具——vim+zsh+tmux

Vim的传说就不用我在赘述了吧,直接上干货!

以下配置是基于Ubuntu 16.04,其他系统没有测试,具体配置文件请移步Windrivder

安装

建议将使用的源修改为国内的阿里云的镜像

## /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

$ sudo apt-get update	# !!! 记住一定要执行更行

执行后让当前用户执行sudo不需要密码
$ echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

安装vim+zsh+tmux

$ sudo apt-get install vim

$ sudo apt-get install git zsh curl -yq

$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"	# 会要求输入当前用户的密码

$ sudo apt-get install tmux

配置

# 将项目中的三个文件复制到主目录下并改名
$ sudo cp vimrc ~/.vimrc
...
# 启动 Vim
:PluginInstall	# 自动安装插件,可能要等上一段时间

详见Windrivder

参考

web_develop

终极Shell

强大的zsh配置文件


Vim与Python真乃天作之合

编辑于 2017-03-26

文章被以下专栏收录

    优美胜于丑陋 明了胜于晦涩 简洁胜于复杂 复杂胜于凌乱 扁平胜于嵌套 间隔胜于紧凑 可读性很重要