Some cleanup

This commit is contained in:
CramMK
2020-06-15 13:42:11 +02:00
parent e720620684
commit 3bf4d1d703
2 changed files with 17 additions and 8 deletions

View File

@@ -14,8 +14,10 @@ Plugin 'vimwiki/vimwiki'
Plugin 'dhruvasagar/vim-table-mode' " manage markdown tables Plugin 'dhruvasagar/vim-table-mode' " manage markdown tables
" fzf " fzf
Plugin 'junegunn/fzf' if executable("fzf")
Plugin 'junegunn/fzf.vim' Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
endif
" Colors " Colors
Plugin 'arcticicestudio/nord-vim' Plugin 'arcticicestudio/nord-vim'

View File

@@ -29,9 +29,9 @@ source $ZSH/oh-my-zsh.sh
export TERM="xterm-256color" export TERM="xterm-256color"
export EDITOR="vim" export EDITOR="vim"
export LANG="en_US.UTF-8" export LANG="en_US.UTF-8"
export PATH=$HOME/.local/bin:$PATH export PATH=$PATH:$HOME/.local/bin
# Aliases # More Aliases
alias vimrc="vim ~/.vimrc" alias vimrc="vim ~/.vimrc"
alias dotf="cd ~/dotfiles/dotfiles" alias dotf="cd ~/dotfiles/dotfiles"
@@ -43,13 +43,14 @@ alias cachefonts="fc-cache -f -v"
alias w="vim ~/vimwiki/index.md" alias w="vim ~/vimwiki/index.md"
# change cursor thickness for vi-mode # Delay for vi-mode
KEYTIMEOUT=1 KEYTIMEOUT=1
# Cursor thickness for vi-mode
function zle-keymap-select { function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] || if [[ ${KEYMAP} == vicmd ]] ||
[[ $1 = 'block' ]]; then [[ $1 = 'block' ]]; then
echo -ne '\e[1 q' echo -ne '\e[2 q'
elif [[ ${KEYMAP} == main ]] || elif [[ ${KEYMAP} == main ]] ||
[[ ${KEYMAP} == viins ]] || [[ ${KEYMAP} == viins ]] ||
@@ -67,9 +68,15 @@ _fix_cursor() {
precmd_functions+=(_fix_cursor) precmd_functions+=(_fix_cursor)
# fzf # fzf
export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse' export FZF_DEFAULT_OPTS='--preview="head {}" --layout=reverse --bind=tab:down --bind=btab:up'
# Allow local aliases # fzf Bindings in zsh (C-r and C-t)
if [[ -x $(which fzf) ]]
then
source ~/.vim/bundle/fzf/shell/key-bindings.zsh
fi
# Local Aliases
if [ -f ~/.zshrc_local ]; then if [ -f ~/.zshrc_local ]; then
source ~/.zshrc_local source ~/.zshrc_local
fi fi