Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vimagit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jreybert
vimagit
Commits
e4c4c181
Commit
e4c4c181
authored
Feb 22, 2017
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
syntax/magit.vim: make title limit configurable
parent
d4d88c34
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+6
-0
6 additions, 0 deletions
README.md
doc/vimagit.txt
+7
-0
7 additions, 0 deletions
doc/vimagit.txt
plugin/magit.vim
+3
-0
3 additions, 0 deletions
plugin/magit.vim
syntax/magit.vim
+1
-1
1 addition, 1 deletion
syntax/magit.vim
with
17 additions
and
1 deletion
README.md
+
6
−
0
View file @
e4c4c181
...
...
@@ -309,6 +309,12 @@ Git command, may be simply simply "git" if git is in your path. Defualt is "git"
To disable chatty inline help in magit buffer (default 1)
> let g:magit_show_help=[01]
#### g:magit_commit_title_limit
Text is grayed if first line of commit message exceed this number of character (default 50)
> let g:magit_commit_title_limit=[0..300]
#### g:magit_default_show_all_files
When this variable is set to 0, all diff files are hidden by default.
...
...
This diff is collapsed.
Click to expand it.
doc/vimagit.txt
+
7
−
0
View file @
e4c4c181
...
...
@@ -351,6 +351,13 @@ let g:magit_git_cmd="git"
To disable chatty inline help in magit buffer (default 1)
let g:magit_show_help=[01]
*vimagit-g:magit_commit_title_limit*
Text is grayed if first line of commit message exceed this number of character
(default 50)
let g:magit_commit_title_limit=[0..300]
*vimagit-g:magit_default_show_all_files*
When this variable is set to 0, all diff files are hidden by default.
When this variable is set to 1, all diff for modified files are shown by default.
...
...
This diff is collapsed.
Click to expand it.
plugin/magit.vim
+
3
−
0
View file @
e4c4c181
...
...
@@ -59,6 +59,9 @@ let g:magit_discard_untracked_do_delete = get(g:, 'magit_discard_untracked_do_de
let
g:magit_refresh_gutter
=
get
(
g
:,
'magit_refresh_gutter'
,
1
)
" Should deprecate the following
let
g:magit_refresh_gitgutter
=
get
(
g
:,
'magit_refresh_gitgutter'
,
0
)
let
g:magit_commit_title_limit
=
get
(
g
:,
'magit_commit_title_limit'
,
50
)
let
g:magit_warning_max_lines
=
get
(
g
:,
'magit_warning_max_lines'
,
10000
)
let
g:magit_git_cmd
=
get
(
g
:,
'magit_git_cmd'
,
"git"
)
...
...
This diff is collapsed.
Click to expand it.
syntax/magit.vim
+
1
−
1
View file @
e4c4c181
...
...
@@ -13,7 +13,7 @@ syn include @diff syntax/diff.vim
execute
'syn match titleEntry "'
.
g:magit_section_re
.
'\n=\+"'
hi
def
link titleEntry Comment
execute
'syn match commitMsgExceed "\(=\+\n.\{
50
}\)\@<=.*$"'
execute
'syn match commitMsgExceed "\(=\+\n.\{
'
.
g:magit_commit_title_limit
.
'
}\)\@<=.*$"'
hi
def
link commitMsgExceed Comment
execute
'syn match stashEntry "'
.
g:magit_stash_re
.
'"'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment