File tree 4 files changed +16
-2
lines changed
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ if [ "$OS" = "darwin" ]; then
17
17
[ ! -f /usr/local/bin/brew ] && /usr/bin/ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
18
18
19
19
# Install basic packages
20
- for pkg in git grc pixz ssh-copy-id vcprompt wget
20
+ for pkg in git grc pixz ssh-copy-id vcprompt wget ripgrep
21
21
do
22
22
[ ! -f /usr/local/bin/$pkg ] && brew install $pkg
23
23
done
Original file line number Diff line number Diff line change 1
- " Directional keys -------------------------------------------------------------
1
+ " Directional keys ------------------------------------------------------------
2
2
3
3
" When wrapping is on, move cursor by displayed lines instead of file lines
4
4
noremap j gj
@@ -10,3 +10,8 @@ noremap gk k
10
10
noremap H ^
11
11
noremap L $
12
12
vnoremap L g_
13
+
14
+ " Plugin key bindings ---------------------------------------------------------
15
+
16
+ " Backslash invokes ack.vim
17
+ nnoremap \ :Ack<SPACE>
Original file line number Diff line number Diff line change @@ -4,3 +4,11 @@ python from powerline.vim import setup as powerline_setup
4
4
python powerline_setup ()
5
5
python del powerline_setup
6
6
set laststatus = 2 " Always show the statusline
7
+
8
+ " ack.vim: use ripgrep/ag if available ----------------------------------------
9
+
10
+ if executable (' rg' )
11
+ let g: ackprg = ' rg -S --no-heading --vimgrep'
12
+ elseif executable (' ag' )
13
+ let g: ackprg = ' ag --vimgrep'
14
+ endif
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Plugin 'VundleVim/Vundle.vim'
12
12
Plugin ' twerth/ir_black'
13
13
14
14
" Behaviors
15
+ Plugin ' mileszs/ack.vim'
15
16
Plugin ' matchit.zip'
16
17
Plugin ' tpope/vim-commentary'
17
18
Plugin ' bronson/vim-trailing-whitespace'
You can’t perform that action at this time.
0 commit comments