{"id":19079035,"url":"https://github.com/tomtom/hookcursormoved_vim","last_synced_at":"2026-05-21T06:30:21.967Z","repository":{"id":1023625,"uuid":"851565","full_name":"tomtom/hookcursormoved_vim","owner":"tomtom","description":"Facilitate definition of triggers on CursorMoved[I] events","archived":false,"fork":false,"pushed_at":"2014-03-25T15:59:38.000Z","size":139,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T18:48:17.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=2037","language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomtom.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-20T16:33:45.000Z","updated_at":"2018-06-30T19:02:36.000Z","dependencies_parsed_at":"2022-07-18T17:17:35.920Z","dependency_job_id":null,"html_url":"https://github.com/tomtom/hookcursormoved_vim","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fhookcursormoved_vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fhookcursormoved_vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fhookcursormoved_vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Fhookcursormoved_vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomtom","download_url":"https://codeload.github.com/tomtom/hookcursormoved_vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240131773,"owners_count":19752725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T02:13:06.695Z","updated_at":"2026-05-21T06:30:21.927Z","avatar_url":"https://github.com/tomtom.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"This experimental plugin provides some help with the definition of \nfunctions that should be called when the cursor position changed.\n\nWhen the cursor position changes, it first checks if a certain condition \nis met and then calls functions registered in \nb:hookcursormoved_{MODE}_{CONDITION} (an array).\n\nIn order to define new conditions, you have to set the variable  \n\"g:hookcursormoved_{CONDITION}\" to a function name (STRING). This \nfunction takes the current mode (i .. insert mode; n ... normal mode) \nas single argument.\n\nFunctions are best registered using |hookcursormoved#Register()|.\nExample: \u003e\n\n    function! WhatsGoingOn(mode) \"{{{3\n        if mode == 'i'\n            DoThis\n        elseif mode == 'n'\n            DoThat\n        endif\n    endf\n\n    call hookcursormoved#Register('syntaxchange', function('WhatsGoingOn'))\n\n\n\n-----------------------------------------------------------------------\n\nStatus:  Works for me (there may be some minor quirks)\nInstall: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT\nSee http://github.com/tomtom for related plugins.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Fhookcursormoved_vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomtom%2Fhookcursormoved_vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Fhookcursormoved_vim/lists"}