From eae719cfb678774cc262e33c4f4f5b2a725382f3 Mon Sep 17 00:00:00 2001 From: jon Date: Sat, 19 Nov 2022 21:01:41 -0600 Subject: [PATCH] Added vim quickscope and fixed lg alias to work w/o tmux --- bash/.bashrc | 7 ++++++- vim/.vimrc | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index e429c4b..54b5141 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -32,7 +32,6 @@ alias ip='ip -br a' alias s='sudo' alias df='sudo df -hT -x tmpfs -x devtmpfs' alias rsync='rsync --progress' -alias lg='ll | grep -i $0' # allows alias expansion after sudo, eg: sudo l # bash man page, "last char of alias value is space or tab..." alias sudo='sudo ' @@ -40,6 +39,12 @@ alias sudo='sudo ' #bind 'set completion-ignore-case on' set bell-style none +#ls and grep function +lg_grep() { + ls -alh | grep -i $1 +} +alias lg=lg_grep + ## function and alias for short find short_find() { find ./ -iname "*${1}*" diff --git a/vim/.vimrc b/vim/.vimrc index e760d4d..79275a2 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -118,8 +118,12 @@ let g:jedi#popup_select_first = 0 "let g:colorizer_auto_color = 1 let g:colorizer_auto_filetype='css,html,c' +"quick-scope config +let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] + call plug#begin('~/.vim/plugged') " vim-plug +Plug 'unblevable/quick-scope' Plug 'tpope/vim-fugitive' Plug 'vim-scripts/indentpython.vim' Plug 'scrooloose/syntastic'