{"id":19832201,"url":"https://github.com/uxcn/vim-x2x","last_synced_at":"2025-02-28T17:45:22.328Z","repository":{"id":151038484,"uuid":"21080116","full_name":"uxcn/vim-x2x","owner":"uxcn","description":"vim plugin to convert radixes","archived":false,"fork":false,"pushed_at":"2019-08-28T17:44:58.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T10:20:04.329Z","etag":null,"topics":["radix","vim","vimscript"],"latest_commit_sha":null,"homepage":"","language":"Vim script","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/uxcn.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-21T22:21:09.000Z","updated_at":"2019-10-18T03:49:25.000Z","dependencies_parsed_at":"2023-04-11T08:33:59.183Z","dependency_job_id":null,"html_url":"https://github.com/uxcn/vim-x2x","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fvim-x2x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fvim-x2x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fvim-x2x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxcn%2Fvim-x2x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uxcn","download_url":"https://codeload.github.com/uxcn/vim-x2x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241191626,"owners_count":19925302,"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":["radix","vim","vimscript"],"created_at":"2024-11-12T11:36:47.035Z","updated_at":"2025-02-28T17:45:22.305Z","avatar_url":"https://github.com/uxcn.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-x2x #\n\nFunctions to convert one radix to another (also see [x2x](https://github.com/uxcn/x2x))\n\n## Using ##\n\nThe two main ways to use this are directly calling the functions\n(Bin, Oct, Dec, Hex), and mappings.\n\nFor example, to insert a binary value from hexadecimal in insert mode\n\n    \u003cc-r\u003e=Bin('0xdeadbeef')\n\nMaps can also be useful.\n\n    xmap \u003cleader\u003eb  \u003cplug\u003ex2b\n    nmap \u003cleader\u003eb  \u003cplug\u003ex2b\n    xmap \u003cleader\u003eo  \u003cplug\u003ex2o\n    nmap \u003cleader\u003eo  \u003cplug\u003ex2o\n    xmap \u003cleader\u003ed  \u003cplug\u003ex2d\n    nmap \u003cleader\u003ed  \u003cplug\u003ex2d\n    xmap \u003cleader\u003eh  \u003cplug\u003ex2h\n    nmap \u003cleader\u003eh  \u003cplug\u003ex2h\n\nThe above convert values using visual select (vw\u003cleader\\\u003eh), and motions\n(\u003cleader\\\u003ehw).\n\n## Help ##\n\n:help x2x\n\n                                                    *Bin()*\n    Bin({expr})              Convert {expr} to binary.\n\n                                                    *Oct()*\n    Oct({expr})              Convert {expr} to octal.\n\n                                                    *Dec()*\n    Dec({expr})              Convert {expr} to decimal.\n\n                                                    *Hex()*\n    Hex({expr})              Convert {expr} to hexadecimal.\n\n                                                    *v_x2b*\n    {Visual}\u003cPlug\u003ex2b        Convert highlighted to binary.\n\n                                                    *x2b*\n    \u003cPlug\u003ex2b{motion}        Convert value that {motion} moves over to binary.\n\n                                                    *v_x2o*\n    {Visual}\u003cPlug\u003ex2o        Convert highlighted to octal.\n\n                                                    *x2o*\n    \u003cPlug\u003ex2o{motion}        Convert value that {motion} moves over to octal.\n\n                                                    *v_x2d*\n    {Visual}\u003cPlug\u003ex2d        Convert highlighted to decimal.\n\n                                                    *x2d*\n    \u003cPlug\u003ex2d{motion}        Convert value that {motion} moves over to decimal.\n\n                                                    *v_x2h*\n    {Visual}\u003cPlug\u003ex2h        Convert highlighted to hexadecimal.\n\n                                                    *x2h*\n    \u003cPlug\u003ex2h{motion}        Convert value that {motion} moves over to hexadecimal.\n\n## Install ##\n\nThe two easiest ways to install are vundle and pathogen.\n\n### vundle ###\n\nSee [vundle](https://github.com/gmarik/Vundle.vim) for vundle install\ninstructions.\n\nIn your vimrc, add\n\n    Plugin 'uxcn/vim-x2x'\n\nFrom vim, run\n\n    :PluginInstall\n\n### pathogen ###\n\nSee [pathogen](https://github.com/tpope/vim-pathogen) for pthogen install\ninstructions.\n\nClone vim-x2x into the bundle directory\n\n    git clone git://github.com/uxcn/vim-x2x.git ~/.vim/bundle/vim-x2x\n    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxcn%2Fvim-x2x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuxcn%2Fvim-x2x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxcn%2Fvim-x2x/lists"}