Skip to content

Commit 543afc7

Browse files
author
naveedm9
committed
Made space bar toggle the size of the buddy list window, the way the project plugin works.
git-svn-id: http://vimchat.googlecode.com/svn/trunk@115 d1d492a2-f496-11dd-9d1d-173cc1d06e3c
1 parent bb7244e commit 543afc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/vimchat.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,9 @@ class VimChatScope:
853853
nnoremap <buffer> <silent> q :py VimChat.toggleBuddyList()<CR>
854854
nnoremap <buffer> <silent> <Leader>c :py VimChat.openGroupChat()<CR>
855855
nnoremap <buffer> <silent> <Leader>ss :py VimChat.setStatus()<CR>
856+
nnoremap <buffer> <silent> <Space> :silent exec 'vertical resize ' . (winwidth('.') > g:vimchat_buddylistwidth ? (g:vimchat_buddylistwidth) : '')<CR>
856857
"""
858+
857859
vim.command(commands)
858860

859861
self.buddyListBuffer = vim.current.buffer

0 commit comments

Comments
 (0)