lambdalisue / vim-gita

[Obsolete] An awesome git handling plugin for Vim
Other
226 stars 8 forks source link

remap <C-^> for terminal use #126

Closed stfl closed 8 years ago

stfl commented 8 years ago

I am cannot use the <C-^> mapping to switch to commit/status view because my terminal apperntly does not register this key. I am running Terminator Terminal on Debian Linux.

I'd like to remap this feature to another key/key-combination.. How can I do that?

Thank you.

lambdalisue commented 8 years ago

Create ftplugin/gita-commit.vim and ftplugin/gita-status.vim and add

nmap <C-^> (gita-commit-open) nmap <C-^> (gita-status-open)

would do

stfl commented 8 years ago

Thank you for your input. I managed to do it like this:

nnoremap <leader>cc :Gita status<CR>
augroup mygita
   autocmd!
   autocmd FileType gita-commit nmap cc <Plug>(gita-status-open)
   autocmd FileType gita-status nmap cc <Plug>(gita-commit-open)
augroup END
lambdalisue commented 8 years ago

Good:-]