diff options
Diffstat (limited to 'plugin/general')
-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>" |