aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-12-11 15:55:25 -0700
committerCody Hiar <codyfh@gmail.com>2017-12-11 15:55:25 -0700
commit5af06da13973e11bd2694d9adcd8dcf74cea3df2 (patch)
treef3e59daf74c0f373220fc8cacc4435ddf4bbd42b
parentafa21647cb1baf290d614d49931718bdf25ae745 (diff)
Ack ignore update. Autocomplete Mappings added
-rw-r--r--plugin/vim-options.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index 2c78667..0d508b2 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -201,6 +201,9 @@ noremap <Right> <C-w>l
" Faster next functions
nnoremap [q :cprev<CR>
nnoremap ]q :cnext<CR>
+" Autocomplete popup mappings
+inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
+inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
"-----------------------------------------------------------------------------------------------------------------------
@@ -220,7 +223,7 @@ if !empty(glob($EditorDir.'plugged/ack.vim/plugin/ack.vim'))
endfunction
" Setting better default settings
let g:ackprg =
- \ "ack -s -H --nocolor --nogroup --column --ignore-dir=.vimcache/ --ignore-dir=migrations/ --ignore-dir=.mypy_cache/ --ignore-file=is:tags --nojs --nocss --nosass"
+ \ "ack -s -H --nocolor --nogroup --column --ignore-dir=.venv/ --ignore-dir=.vimcache/ --ignore-dir=migrations/ --ignore-dir=.mypy_cache/ --ignore-file=is:tags --nojs --nocss --nosass"
endif
"-----------------------------------------------------------------------------------------------------------------------