diff --git a/_config/nvim/init.vim b/_config/nvim/init.vim index 14804f8..3bb3467 100644 --- a/_config/nvim/init.vim +++ b/_config/nvim/init.vim @@ -12,6 +12,7 @@ Plug 'deoplete-plugins/deoplete-clang' " Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install tern'} Plug 'tbodt/deoplete-tabnine', { 'do': './install.sh' } Plug 'mg979/vim-visual-multi' +Plug 'terryma/vim-multiple-cursors' " Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } " Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } Plug 'luochen1990/rainbow' diff --git a/_zshrc b/_zshrc new file mode 100755 index 0000000..9884429 --- /dev/null +++ b/_zshrc @@ -0,0 +1,50 @@ +#!/bin/zsh + +# The following lines were added by compinstall +zstyle ':completion:*' completer _expand _complete _ignored +zstyle ':completion:*' list-colors '' +zstyle ':completion:*' menu select=0 +zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle :compinstall filename '/home/osh/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall + +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +setopt appendhistory nomatch notify extendedglob +bindkey -v +# End of lines configured by zsh-newuser-install + +# Change cursor shape for different vi modes. +function zle-keymap-select { + if [[ ${KEYMAP} == vicmd ]] || + [[ $1 = 'block' ]]; then + echo -ne '\e[1 q' + + elif [[ ${KEYMAP} == main ]] || + [[ ${KEYMAP} == viins ]] || + [[ ${KEYMAP} = '' ]] || + [[ $1 = 'beam' ]]; then + echo -ne '\e[5 q' + fi +} +zle -N zle-keymap-select + +[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc" + +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source /usr/share/fzf/key-bindings.zsh +source /usr/share/fzf/completion.zsh + +setopt interactivecomments +setopt HIST_IGNORE_SPACE + +eval $(thefuck --alias) + +export PS1=" +%{$(tput bold)%}%{$(tput setaf 1)%}[%{$(tput setaf 3)%}%n%{$(tput setaf 2)%}@%{$(tput setaf 4)%}%M %{$(tput setaf 5)%}%~%{$(tput setaf 1)%}]%{$(tput setaf 7)%} +$ %{$(tput sgr0)%}"