Skip to content
vimrc
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.conky/conky-ev
.vim
backup
script
style
termux
tmux
.gitignore
.gitmodules
.vimrc
.zshrc
.zshrc.local
README.md
byzanz-record-gui.sh
byzanz-record-region.sh
byzanz-record-window.sh
curl.cmd
init_install.sh
install.sh
install_android_decompiler.sh
install_byzanz_record.sh
install_conky.sh

README.md

dotfiles config contain vim, zsh, tmux configurations.

Overview

  • zsh
  • vim
  • tmux

With

  • antigen to manage zsh plugins, source ~/.zshrc to install all zsh plugins
  • Vundle to manage vim plugins, vundle relate configuration is under vundle_vimrc. In Vim, :PluginInstall to install all vim plugins.
  • tpm to manage tmux plugins, in tmux, press Ctrl +B + I to install all tmux plugins.

zsh config

to see .zshrc file

Vim config

vundle related configuration is under vundle_vimrc, to show all plugins list, use :PluginList in vim.

python related configurations is under python_vimrc.

Instruction under Linux

Just run ./install.sh, everything is done. Then Enter the vim run :PluginInstall to install all plugins.

install manually

Or, you can do it manually follow the step:

  1. Install Vundle to ~/.vim/ directory.

    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

  2. Enter vim, run :PluginInstall, after install all plugin, you will meet an error,

Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.

For Ubuntu and derivatives:

sudo apt-get install exuberant-ctags

with yum:

sudo yum install ctags-etags

Tmux

Tmux 配置參考了 gpakosz 的大部分配置。Tmux 的基础部分可以参考这篇 文章。

需要满足

  • tmux >= 2.1
  • 在 tmux 运行的环境中,$TERM 需要设置为 xterm-256color

功能

  • 在保留C-b 的前提下,C-a 作为第二选择
  • prefix + | 开启垂直分割的新 panel, prefix + - 水平分割
  • C-hjkl 直接在多 panel 中跳转
  • Tmux 调整 Pane 窗口大小 prefix + Shift + HJKL

使用 Tmux Plugin Manager 管理,默认有如下插件

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
You can’t perform that action at this time.