diff options
Diffstat (limited to 'nvim/plugin/navigation.vim')
-rw-r--r-- | nvim/plugin/navigation.vim | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nvim/plugin/navigation.vim b/nvim/plugin/navigation.vim new file mode 100644 index 0000000..4db3e4c --- /dev/null +++ b/nvim/plugin/navigation.vim @@ -0,0 +1,33 @@ +nnoremap <C-Left> :call AfPPAlternatePluthPluth()<CR> +nnoremap <C-Up> :call AfPPAlternate()<CR> +inoremap <C-Left> <esc>:call AfPPAlternatePluthPluth()<CR> +inoremap <C-Up> <esc>:call AfPPAlternate()<CR> +nnoremap <C-k> :cnext<CR>zz +nnoremap <C-j> :cprev<CR>zz +nnoremap <leader>k :lnext<CR>zz +nnoremap <leader>j :lprev<CR>zz +nnoremap <C-q> :call ToggleQFList(1)<CR> +nnoremap <leader>q :call ToggleQFList(0)<CR> + +let g:the_primeagen_qf_l = 0 +let g:the_primeagen_qf_g = 0 + +fun! ToggleQFList(global) + if a:global + if g:the_primeagen_qf_g == 1 + let g:the_primeagen_qf_g = 0 + cclose + else + let g:the_primeagen_qf_g = 1 + copen + end + else + if g:the_primeagen_qf_l == 1 + let g:the_primeagen_qf_l = 0 + lclose + else + let g:the_primeagen_qf_l = 1 + lopen + end + endif +endfun |