Dependency:
- ag: the silver searcher
- ctags
- cscope
- python2.7+
Usage:
- Install vundle from git: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- Download powerline fonts from https://github.com/powerline/fonts. Copy the fonts to ~/.fonts, and then run fc-cache -fv to install the fonts
- Pull this repo to ~/.vim
- Make a soft link ~/.vimrc to ~/.vim/vimrc
- Install plugins by running ":VundleInstall" in vim
- goto YCM dir and run "./install.py --clang-completer" to enable semantic completion
- To install tmuxline, select a tmuxline theme by running ":Tmuxline theme" in vim, store the theme into a file by running ":TmuxlineSnapshot file", and finally source this file in ~/.tmux.conf, shown as follows. One can also directly use the one provided in this repo.
set -g default-terminal "screen-256color"
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind v split-window -h
bind s split-window -v
#switch panels
bind k selectp -U # switch to panel Up
bind j selectp -D # switch to panel Down
bind h selectp -L # switch to panel Left
bind l selectp -R # switch to panel Right
#set-option -g pane-border-fg magenta
#set-option -g pane-active-border-fg green
#set-option -g pane-active-border-bg default
#set-option -g pane-border-style fg=magenta
#set-option -g pane-active-border-style fg=magenta
#set-option -g pane-active-border-style bg=default
set -g pane-border-fg magenta
set -g pane-active-border-fg green
set -g pane-active-border-bg magenta
source-file ~/.vim/tmuxline.sh
- add the following to ~/.bashrc. To install another shell_prompt theme, one can follow the way similar to the above method.
alias ctags='ctags -R --fields=+iaS --extra=+q --sort=yes --c++-kinds=+p'
source /home/caiqc/.vim/shell_prompt.sh
alias tmux='TERM=xterm-256color /usr/bin/tmux'
stty -ixon
stty -ixany
- If the solarized color scheme does not work as expected, one may need to make the following change to solarized.vim, which can be found in ~/.vim/bundle/vim-colors-solarized/colors
@@ -300,8 +300,10 @@ elseif g:solarized_termcolors != 256 && &t_Co >= 16
let s:green = "2"
elseif g:solarized_termcolors == 256
let s:vmode = "cterm"
let s:base03 = "234"
let s:base02 = "235"
let s:base01 = "239"
let s:base00 = "240"
let s:base0 = "244"
@@ -300,8 +300,10 @@ elseif g:solarized_termcolors != 256 && &t_Co >= 16
let s:green = "2"
elseif g:solarized_termcolors == 256
let s:vmode = "cterm"
let s:base03 = "NONE"
let s:base02 = "NONE"
let s:base01 = "239"
let s:base00 = "240"
let s:base0 = "244"