aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2020-04-15 09:13:39 -0600
committerCody Hiar <cody@hiar.ca>2020-04-15 09:13:39 -0600
commit7fdb507cd3902b6ddc6b4d65900471f50b6ee128 (patch)
treea08c8e389b6eae5b0c503e0741a38aafd9931759 /plugin
parent4bb10700ac4b7c99743bc77795a9f9098ddfd222 (diff)
Allow hidden buffers, update ack command
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-options.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index 36d3cdf..f2a5c41 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -18,6 +18,7 @@ set path=** " Allow commands like 'gf' to find files
set wildignore=*/app/cache,*/vendor,*/env,*.pyc,*/venv,*/__pycache__,*/venv " Ignore folders
set sessionoptions+=globals " Append global variables to the default session options (Window Names)
set backspace=2 " Make backspace work like most other programs
+set hidden " Allow hidden buffers
" Custom status line
@@ -147,7 +148,7 @@ nnoremap <leader>cc :cclose<CR>
"-----------------------------------------------------------------------------------------------------------------------
if !empty(glob($EditorDir.'plugged/ack.vim/plugin/ack.vim'))
nnoremap <leader>/ :call AckSearch()<CR>
- noremap <leader>ea :Ack <cword><cr>
+ noremap <leader>ea :Ack <cword><cr><c-w><c-p>
function! AckSearch()
call inputsave()
let term = input('Search: ')