Commit Graph

81 Commits

Author SHA1 Message Date
Andy Stewart
07d7c9d478 Override SignColumn highlight group by default.
Most colorschemes (e.g. solarized) don't give any thought to the
SignColumn highlight group so generally the sign column is ugly.

With this change vim-gitgutter defaults to making the sign column look
like the line number column.

Solarized users no longer need `highlight clear SignColumn` in their
vimrc :)

To stop vim-gitgutter from overriding the SignColumn highlight, add this
to your vimrc:

    let g:gitgutter_override_sign_column_highlight = 0
2015-03-31 16:23:55 +02:00
Andy Stewart
1fae335a65 Force grep to produce colourless output. 2015-03-03 10:52:07 +01:00
Andy Stewart
f6d5b8297f Add note to check grep produces colourless output. 2015-02-27 09:57:34 +00:00
Andy Stewart
061258e044 Add note about solarized-dark. 2015-02-11 10:04:27 +01:00
Andy Stewart
e5efbaffc0 Fix Markdown typo. 2015-01-15 15:00:15 +01:00
Andy Stewart
6b8e908cc9 Enable . command to work with staging/reverting hunks. 2015-01-14 10:40:43 +01:00
Andy Stewart
2c8e82ab80 Add another note for Fish users to README. 2015-01-07 16:41:51 +01:00
Andy Stewart
1a68abedf1 Update caveat about visual artefacts. 2014-12-06 12:16:34 +01:00
Andy Stewart
83ace2014a Suppress signs when there are more than 500. 2014-07-21 16:36:16 +02:00
Andy Stewart
a2aa2b1100 Avoid Windows command prompt popups when possible.
Before this commit some Windows users saw the command prompt pop
up briefly, and/or the taskbar flicker, every time the plugin ran.

Now the plugin will use xolox's vim-shell and vim-misc, if they are
available and we are on Windows, to execute external commands.  Xolox's
clever plugins avoid the command prompt popup and taskbar flicker.

Windows users with those plugins installed can opt out by setting a
variable in their vimrc.

Many thanks to @suxpert for the initial code.
2014-06-19 10:45:40 +02:00
Andy Stewart
7ac9d059f8 Add note about updatetime. 2014-06-17 09:50:29 +02:00
Andy Stewart
c6e5cf49f2 Show sign on first line when line(s) deleted at start of file.
This time with silly mistake fixed.
2014-06-02 09:20:51 +02:00
Andy Stewart
d1e66b71f9 Revert "Show sign on first line when line(s) deleted at start of file."
Signs aren't shown for deleted lines which aren't at the start of the
file.

This reverts commit 0fd18d66f6.
2014-05-31 16:57:15 +02:00
Andy Stewart
0fd18d66f6 Show sign on first line when line(s) deleted at start of file. 2014-05-30 17:03:54 +02:00
Andy Stewart
208e301903 Document the sign column's presence with line highlights. 2014-05-20 10:08:28 +02:00
Andy Stewart
37883739d9 Update broken link to my portfolio. 2014-05-07 14:05:05 +02:00
Adam Monsen
7908defa0c README: adapt to Vundle interface change
"Bundle" is now "Plugin"

https://github.com/gmarik/Vundle.vim/blob/master/doc/vundle.txt#L345-L369
2014-04-15 08:47:18 -07:00
Andy Stewart
0ca3f7e3cd Add hunk previewing. 2014-03-18 13:50:22 +01:00
Andy Stewart
f291db08c7 Disable realtime updates when Vim older than 7.3.105. 2014-02-14 12:59:39 +00:00
Andy Stewart
13a11f8935 README improvements. 2014-01-16 12:17:02 +01:00
Andy Stewart
bb87232842 Add ability to toggle signs on and off. 2014-01-16 11:32:41 +01:00
Andy Stewart
0537c6945a Use [c and ]c to jump between hunks (changes).
This is more consistent with Vim.
2014-01-15 15:36:13 +01:00
Andy Stewart
ae81dccb67 Add configuration option to disable key maps.
And add a little documentation.
2014-01-13 11:01:14 +01:00
Andy Stewart
dd93685ca3 Proper sentences in bullet points. 2014-01-11 17:26:38 +01:00
Andy Stewart
5bd0f7f796 Add up-to-dateness feature to README. 2014-01-10 11:13:17 +01:00
Andy Stewart
a5b9da9f56 Add features section to README. 2014-01-10 10:25:58 +01:00
Andy Stewart
92abcce1ff Stage and revert individual hunks. 2014-01-09 12:14:59 +01:00
Andy Stewart
d420a44536 Reduce duplicate work due to overlapping autocommands. 2014-01-07 15:02:27 +01:00
Andy Stewart
021a922083 Remove obsolete text. 2014-01-07 10:47:55 +01:00
Andy Stewart
88a2eb3626 Update FAQ. 2014-01-07 10:45:59 +01:00
Andy Stewart
c2cea84a7f Remove Alternatives section.
I'm not going to spend time keeping it up to date so it'll just get more
and more obsolete.
2014-01-07 10:42:34 +01:00
Andy Stewart
878c3422c9 Add note about Fish shell. 2013-08-22 10:47:41 +02:00
Andy Stewart
6e1e1dfe09 Update signs in realtime.
Thanks to @ashb for the help with this.
2013-08-19 15:21:32 +02:00
Andy Stewart
935184bd18 Add default mappings. 2013-04-17 11:23:11 +02:00
Andy Stewart
bcef63b7d5 Clarify FAQ. 2013-04-17 10:52:52 +02:00
Andy Stewart
01e7eb4e8d Clarify that plugin works with saved buffers. 2013-04-17 10:51:45 +02:00
Andy Stewart
1a13951fc5 Simplify tradeoff between accuracy and speed.
If the plugin slows down your Vim too much, you can have it run less
often by setting `g:gitgutter_eager = 0`.

This replaces the former options `g:gitgutter_on_bufenter` and
`g:gitgutter_on_focusgained`.
2013-04-17 10:43:45 +02:00
Andy Stewart
d4a1a60f39 Always prevent flicker.
Previously flicker was prevented only when the sign column was
always present.
2013-04-10 10:34:16 +02:00
Andy Stewart
5c23cadf57 Allow plugin to bypass any alias for grep.
This is an opt-in configuration.
2013-04-05 11:23:11 +02:00
Andy Stewart
93288afef8 Update only visible buffers on FocusGained and TabEnter. 2013-04-02 11:37:37 +02:00
Justin M. Keyes
15dc21aca5 Check for grep
Fixes #72
2013-04-01 14:03:36 -04:00
Andy Stewart
3243987028 Make signs optional (on by default). 2013-03-28 09:36:24 +01:00
Andy Stewart
948a0fb977 Allow configuration of extra arguments for git-diff. 2013-03-20 09:56:45 +01:00
Andy Stewart
e04d719159 Customisable signs' symbols. 2013-03-20 09:29:00 +01:00
Andy Stewart
7f1c104f9f Fix autocommands so GitGutter doesn't run twice on file read. 2013-03-18 16:09:40 +01:00
Andy Stewart
21a27e05b2 Fix typos. 2013-03-15 11:05:25 +01:00
Andy Stewart
966a432ce5 Specify viml for relevant code blocks. 2013-03-15 11:03:24 +01:00
Andy Stewart
c53f4cf807 Add FAQ about lag. 2013-03-15 11:02:45 +01:00
Andy Stewart
677dac451d Add opt-out configuration for BufEnter and FocusGained. 2013-03-15 10:53:31 +01:00
Andy Stewart
c0d24ffa47 Add debugging section to README. 2013-03-14 16:31:55 +01:00