-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path0054 - ConvertBase.vim.json
More file actions
27 lines (27 loc) · 1.38 KB
/
0054 - ConvertBase.vim.json
File metadata and controls
27 lines (27 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"script_id": "54",
"display_name": "ConvertBase.vim",
"summary": "Convert to/from various numeric bases",
"name": "ConvertBase.vim",
"script_type": "utility",
"description": "This script is basically just three functions:\n ConvertToBase(int, base)\n ConvertFromBase(str, base)\n ConvertBases(str, base1, base2)\n\nAnd two example functions that are commented out.\n\nThe following mappings may also be useful:\n\" Translate the character under the cursor to a decimal value:\nnmap <M-a>d i<C-R>=char2nr(getline(line(\".\"))[col(\".\") - 1])<CR><ESC>lx\n\" ... hexadecimal value:\nnmap <M-a>h ix<C-R>=ConvertToBase(char2nr(getline(line(\".\"))[col(\".\") - 1]),16)<CR><ESC>lx\n\" ... octal value:\nnmap <M-a>o i<C-R>=ConvertToBase(char2nr(getline(line(\".\"))[col(\".\") - 1]),8)<CR><ESC>lx",
"install_details": "Source the script or place it in your plugin directory.",
"versions": [
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=84",
"filename": "ConvertBase.vim",
"script_version": "1.0",
"date": "2001-08-06",
"vim_version": "5.7",
"author": {
"user_id": "59",
"user_name": "Heptite",
"first_name": "Christian J.",
"last_name": "Robinson",
"email": "heptite () gmail ! com",
"homepage": "http://christianrobinson.name/vim/"
},
"release_notes": "Initial upload"
}
]
}