Skip to content

Commit 2cded2f

Browse files
committed
Added an option to avoid resetting udatetime
1 parent 175172e commit 2cded2f

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ So here is my patch.
1010

1111
![Screen shot](http://github.com/skammer/vim-css-color/raw/master/Screen%20shot%202010-07-04%20at%200.19.46.png)
1212

13+
Configuration
14+
-------------
15+
16+
`g:cssColorVimDoNotMessMyUpdatetime` is used when updatetime value set by plugin (100ms) is interfering with your confiduration.
17+
18+
`let g:cssColorVimDoNotMessMyUpdatetime = 1`
19+
20+
Post Scriptum
21+
-------------
22+
1323
Major kudos to [rainbow-mode.el](http://julien.danjou.info/rainbow-mode.html), from which I borrowed some code, and to [ConvertBase.vim](http://www.vim.org/scripts/script.php?script_id=54) plugin I used for base conversion.
1424

1525
I highly recomend using [pathogen.vim](http://www.vim.org/scripts/script.php?script_id=2332) plugin for all your plugin installations. It's so good, it should be illegal. God bless Tim Pope.

after/syntax/css.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,4 +390,8 @@ if has("gui_running") || &t_Co==256
390390

391391
autocmd CursorHold * silent call s:PreviewCSSColorInLine('.')
392392
autocmd CursorHoldI * silent call s:PreviewCSSColorInLine('.')
393-
endif " has("gui_running")
393+
if !exists('g:cssColorVimDoNotMessMyUpdatetime')
394+
set ut=100
395+
endif
396+
397+
endif

0 commit comments

Comments
 (0)