Skip to content

Commit

Permalink
Fix the logic behind the <c-f> binding checker
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbasit committed Jan 3, 2012
1 parent 480a6ee commit 62bbdde
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions janus/vim/tools/janus/after/plugin/ack.vim
Expand Up @@ -2,11 +2,14 @@ if has("gui_macvim")
" Command-Shift-F on OSX
call janus#add_mapping('ack', 'map', '<D-F>', ':Ack<space>')
else
if maparg("<C-F>") == ""
" Control-Shift-F on other systems
call janus#add_mapping('ack', 'map', '<C-F>', ':Ack<space>')
else
" Control-Shift-F on other systems
call janus#add_mapping('ack', 'map', '<C-F>', ':Ack<space>')

" Check if we defined <C-f> in the process
if maparg("<C-f>") == ":Ack "
" >leader>f on systems where <C-f> == <C-F>
call janus#add_mapping('ack', 'map', '<leader>f', ':Ack<space>')
endif
map <C-f> <S-Down>
end
endif

0 comments on commit 62bbdde

Please sign in to comment.