diff options
author | Mario Forzanini <mf@marioforzanini.com> | 2024-08-02 09:14:46 +0200 |
---|---|---|
committer | Mario Forzanini <mf@marioforzanini.com> | 2024-08-02 09:14:46 +0200 |
commit | 7a6b161eae94b46482b8ed564d25650ee986ba84 (patch) | |
tree | 91d4f63b860fd4f0c24ecd417d798cca1a9c55bb | |
parent | 9eece5126e6f04a5bf12b81cd0ecf7e3b8838856 (diff) |
-rw-r--r-- | plugin/general/functions.vim | 6 | ||||
-rw-r--r-- | plugin/general/mappings.vim | 10 |
2 files changed, 6 insertions, 10 deletions
diff --git a/plugin/general/functions.vim b/plugin/general/functions.vim index eb6cd35..4707b8e 100644 --- a/plugin/general/functions.vim +++ b/plugin/general/functions.vim @@ -1,9 +1,3 @@ -function Grep() - let pattern = input("Search for? ") - exec "vimgrep " . pattern . " **/*" - exec "copen" -endfunc - let g:quickfix_open = 0 function ToggleQuickfix() if g:quickfix_open == 1 diff --git a/plugin/general/mappings.vim b/plugin/general/mappings.vim index 0bcfe34..c8e13e1 100644 --- a/plugin/general/mappings.vim +++ b/plugin/general/mappings.vim @@ -12,6 +12,10 @@ nnoremap <leader>h :wincmd h<cr> nnoremap <leader>j :wincmd j<cr> nnoremap <leader>k :wincmd k<cr> nnoremap <leader>l :wincmd l<cr> +nnoremap <C-h> :wincmd h<cr> +nnoremap <C-j> :wincmd j<cr> +nnoremap <C-k> :wincmd k<cr> +nnoremap <C-l> :wincmd l<cr> nnoremap <leader>o :only<cr> nnoremap <leader>c :close<cr> nnoremap <leader>v :vsplit<cr> @@ -62,11 +66,9 @@ nmap E gE nmap L g$ " CUSTOM FUNCTIONS -nnoremap <silent><leader>w :call Grep()<cr> -nnoremap <leader>T :call ThemeSwap()<cr> -nnoremap <leader>t :call Todo()<cr> +nnoremap <silent><leader>w :Rg<cr> nnoremap <silent><C-q> :call ToggleQuickfix()<cr> -nnoremap <silent><leader>C :call QuickMake()<cr> +nnoremap <silent><C-c> :call QuickMake()<cr> " COMPLETION inoremap <expr> <cr> pumvisible() ? "<C-y>" : "<cr>" |