Add find command via ack/ag and repeat command
170e171642c1a745d69667a0a6bb350c027a8452
1 parent
3d3e0cec
.vimrc
+7 -0
| 139 | 139 | map <Leader>m :make<Return> |
|
| 140 | 140 | map <C-n> :NERDTreeToggle<CR> |
|
| 141 | 141 | map <C-p> :FuzzyOpen<CR> |
|
| 142 | 142 | map <C-_> <plug>NERDCommenterToggle |
|
| 143 | 143 | map <Leader><Space> :Goyo<CR> |
|
| 144 | + | map <Leader>f :Ack!<space> |
|
| 145 | + | map <Leader>. @: |
|
| 144 | 146 | ||
| 145 | 147 | " Fuzzy finder using `fzf`. Combines buffers with `ag`. |
|
| 146 | 148 | function! s:fuzzy(...) |
|
| 147 | 149 | try |
|
| 148 | 150 | let l = filter(range(1, bufnr('$')), 'buflisted(v:val)') |
| 161 | 163 | \ 'options': '--exact --color=16 --prompt="/ "', |
|
| 162 | 164 | \}), a:000) |
|
| 163 | 165 | endfunction |
|
| 164 | 166 | command! FuzzyOpen call s:fuzzy() |
|
| 165 | 167 | ||
| 168 | + | if executable('ag') |
|
| 169 | + | let g:ackprg = 'ag --vimgrep' |
|
| 170 | + | endif |
|
| 171 | + | ||
| 166 | 172 | " Syntax coloring |
|
| 167 | 173 | set t_Co=256 |
|
| 168 | 174 | syntax enable |
|
| 169 | 175 | ||
| 170 | 176 | try |
| 178 | 184 | Plug 'scrooloose/nerdcommenter' |
|
| 179 | 185 | Plug 'airblade/vim-gitgutter' |
|
| 180 | 186 | Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } |
|
| 181 | 187 | Plug 'neomake/neomake' |
|
| 182 | 188 | Plug 'tpope/vim-fugitive' |
|
| 189 | + | Plug 'mileszs/ack.vim' |
|
| 183 | 190 | Plug 'eagletmt/neco-ghc' |
|
| 184 | 191 | Plug 'shougo/deoplete.nvim' |
|
| 185 | 192 | Plug 'neovimhaskell/haskell-vim' |
|
| 186 | 193 | ||
| 187 | 194 | call plug#end() |