Skip to content

Instantly share code, notes, and snippets.

@h1mesuke
Created June 23, 2010 23:06
Show Gist options
  • Save h1mesuke/450689 to your computer and use it in GitHub Desktop.
Save h1mesuke/450689 to your computer and use it in GitHub Desktop.
Vim - My filetype plugin for ConqueTerm
" FileType Plugin for conque_term
"" Keymaps
if g:ConqueTerm_CWInsert
inoremap <silent><buffer> <C-w>= <Esc><C-w>=i
imap <silent><buffer> <C-w>+ <Esc><C-w>+i
imap <silent><buffer> <C-w>- <Esc><C-w>-i
imap <silent><buffer> <C-w>@ <Esc><C-w>@i
" " defined at autoload/conque_term.vim
" inoremap <silent> <buffer> <C-w>j <Esc><C-w>j
" inoremap <silent> <buffer> <C-w>k <Esc><C-w>k
" inoremap <silent> <buffer> <C-w>h <Esc><C-w>h
" inoremap <silent> <buffer> <C-w>l <Esc><C-w>l
" inoremap <silent> <buffer> <C-w>w <Esc><C-w>w
inoremap <silent><buffer> <C-w><C-w> <Esc><C-w>w
imap <silent><buffer> <C-w>W <C-w>
inoremap <silent><buffer> <C-w>J <Esc><C-w>Ji
inoremap <silent><buffer> <C-w>K <Esc><C-w>Ki
inoremap <silent><buffer> <C-w>H <Esc><C-w>Hi
inoremap <silent><buffer> <C-w>L <Esc><C-w>Li
inoremap <silent><buffer> <C-w>d <Esc><C-w>c
inoremap <silent><buffer> <C-w><C-d> <Esc><C-w>c
imap <silent><buffer> <C-w><C-n> <Esc><C-n>
imap <silent><buffer> <C-w><C-p> <Esc><C-p>
for nr in range(1,9)
execute 'imap <silent><buffer> <C-w>'.nr.' <Esc><Space>'.nr
execute 'imap <silent><buffer> <C-w><Space>'.nr.' <Esc><Space><Space>'.nr
endfor
endif
nnoremap <silent><buffer> <C-w>d <C-w>c
nnoremap <silent><buffer> <C-w><C-d> <C-w>c
" vim: filetype=vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment