Skip to content

Commit

Permalink
plugin/magit.vim: disable inline help by default (fix #46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreybert committed Nov 30, 2015
1 parent b8d9436 commit b971b18
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin/magit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let g:magit_folding_close_mapping = get(g:, 'magit_folding_close_mapping',

" user options
let g:magit_enabled = get(g:, 'magit_enabled', 1)
let g:magit_show_help = get(g:, 'magit_show_help', 1)
let g:magit_show_help = get(g:, 'magit_show_help', 0)
let g:magit_default_show_all_files = get(g:, 'magit_default_show_all_files', 1)
let g:magit_default_fold_level = get(g:, 'magit_default_fold_level', 1)
let g:magit_default_sections = get(g:, 'magit_default_sections', ['info', 'global_help', 'commit', 'staged', 'unstaged'])
Expand Down Expand Up @@ -82,9 +82,6 @@ let s:magit_inline_help = {
\'R refresh magit buffer',
\'q close magit buffer',
\'h toggle help showing in magit buffer',
\'',
\'To disable inline default appearance, add "let g:magit_show_help=0" to .vimrc',
\'You will still be able to toggle inline help with h',
\],
\ 'commit': [
\'CC commit all staged changes with commit mode previously set (normal or',
Expand Down Expand Up @@ -126,6 +123,7 @@ function! s:mg_get_info()
silent put ='Current branch: ' . branch
silent put ='Last commit: ' . commit
silent put =''
silent put ='Press h to display help'
endfunction

" s:mg_display_files: display in current buffer files, filtered by some
Expand Down

0 comments on commit b971b18

Please sign in to comment.