

GitHub - axlebedev/footprints: Vim plugin: footprints. Show last edited lines in...
source link: https://github.com/axlebedev/footprints
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Footprints vim plugin
Footprints is a plugin that makes visualisation of command :changes
on the fly.
It helps to keep focus on lines you are working on
USAGE
Change any text.
That's it. That line will be highlighted.
The older change - the dimmer highlight.
INSTALLATION
Example of installation and setting configs
Plug 'axlebedev/footprints'
let g:footprintsColor = '#3A3A3A'
let g:footprintsTermColor = '208'
let g:footprintsEasingFunction = 'linear'
let g:footprintsHistoryDepth = 20
let g:footprintsExcludeFiletypes = ['magit', 'nerdtree', 'diff']
let g:footprintsEnabledByDefault = 1
let g:footprintsOnCurrentLine = 0
CONFIGURATION
g:footprintsColor
Default: '#3A3A3A'
or '#C1C1C1'
depending on &background
setting
Hex number. Color of the latest change highlight. Used in gui or if &termguicolors
Older highlights will be dimmed to 'Normal' background according to g:footprintsEasingFunction
.let g:footprintsColor = '#275970'
g:footprintsTermColor
Default: 208
Number. Color of the latest change highlight. Used in terminal if not &termguicolors
g:footprintsEasingFunction
is ignored.let g:footprintsTermColor = '186'
g:footprintsEasingFunction
Default: 'linear'
One of linear
, easein
, easeout
, easeinout
.
How does footprint color 'cooldown' to usual background colorlet g:footprintsEasingFunction = 'easeinout'
g:footprintsHistoryDepth
Default: 20
How many steps should be highlightedlet g:footprintsHistoryDepth = 10
g:footprintsExcludeFiletypes
Default: []
Which filetypes should not be processed by this pluginlet g:footprintsExcludeFiletypes = ['magit', 'nerdtree', 'diff']
g:footprintsEnabledByDefault
Default: 1
Boolean. Define if this plugin is enabled on vim startlet g:footprintsEnabledByDefault = 1
g:footprintsOnCurrentLine
Default: 0
Boolean. Define if current line should be highlighted or not.let g:footprintsOnCurrentLine = 0
COMMANDS
:FootprintsDisable
:FootprintsEnable
:FootprintsToggle
Enable/disable Footprints globally
:FootprintsBufferDisable
:FootprintsBufferEnable
:FootprintsBufferToggle
Enable/disable Footprints only in current buffer
:FootprintsCurrentLineDisable
:FootprintsCurrentLineEnable
:FootprintsCurrentLineToggle
Enable/disable Footprint highlight for current line
footprints#SetColor(hexColor: string)
Set g:footprintsColor
and update highlights to new color.
Note: this change will not be saved to next vim run, use g:footprintsColor
for persistent change.call footprints#SetColor('#FF0000')
footprints#SetTermColor(termColorCode: number)
Set g:footprintsTermColor
and update highlights to new color.
Note: this change will not be saved to next vim run, use g:footprintsColor
for persistent change.call footprints#SetTermColor(200)
footprints#Footprints()
Update footprints in current buffercall footprints#Footprints()
footprints#OnBufEnter()
Update footprints on bufenter or any other case when current window contains some older highlightscall footprints#OnBufEnter()
footprints#OnCursorMove()
Update footprints when content was not changed, only update current line highlightcall footprints#OnCursorMove()
footprints#Disable(forCurrentBuffer: bool)
footprints#Enable(forCurrentBuffer: bool)
footprints#Toggle(forCurrentBuffer: bool)
Disable, enable or toggle footprints.
forCurrentBuffer == 0
- do it globallyforCurrentBuffer == 1
- do only for current buffer
call footprints#Disable(0)
call footprints#Enable(1)
call footprints#Toggle(1)
footprints#EnableCurrentLine()
footprints#DisableCurrentLine()
footprints#ToggleCurrentLine()
Disable, enable or toggle footprint on current line.
call footprints#DisableCurrentLine()
call footprints#EnableCurrentLine()
call footprints#ToggleCurrentLine()
CONTRIBUTIONS
Contributions and pull requests are welcome.
If you find a bug, or have an improvement suggestion -
please place an issue in this repository.
Recommend
-
48
README.md Introduction This dataset contains 124,885,597 computer generated building footprints in all 50 US states. This data is freely available for download and use. License ...
-
6
Footprints on the Internet 2020-01-13 | 这篇文章创建于 488 天之前,其中的内容可能已过时。 今日小导安排的破冰活动是随机分配外校搭档之后运用搜索引擎等工具查找对方...
-
4
AI can now identify footprints — but forensic experts won’t get fired just yet AI could free up time for the expert to focus...
-
6
12 Ways To Reduce Carbon Footprints as a Full Stack Developer Sep 4 Originally published at
-
9
Ancient Two-Legged Crocodile Left Behind These Awesome FootprintsArtist’s interpretation of two-legged crocodiles from the Cretaceous.Image: Anthony RomilioModern crocodiles are known for their sprawling four-legged gait...
-
8
Tencent expands footprints in Singapore, setting up a new game studio in the city-state Tencent expands footprints in Singapore, setting up a new game studio in the city-state
-
9
Footprints in the Sand As some or all of you know, I went on a camp thing with the UQ Catholic Society last weekend - up at the sunny coast. Something headlands was the place, it was cool. I was a little reprehensive at first...not...
-
15
April 11, 2022
-
9
Bernd Freibott May 5, 2022 1 minute read
-
3
Christoph Zeh May 1, 2022 6 minute read
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK