-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path0006 - keepcase.vim.json
43 lines (43 loc) · 2.2 KB
/
0006 - keepcase.vim.json
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"script_id": "6",
"display_name": "keepcase.vim",
"summary": "Functions for doing case-persistant substitutions",
"name": "keepcase.vim",
"script_type": "utility",
"description": "Usage: Using KeepCase or KeepCaseSameLen defined here, do a substitution like this:\n\n%s/\\u\\<old_word\\>/\\=KeepCaseSameLen(submatch(0), 'new_word')/g\n\n* KeepCase( original_word , new_word ) \n returns the new word maintaining case \n simply uses heuristics to work out some different common situations\n given NewWord\n Word \t--> Newword\n WORD --> NEWWORD\n word --> newword\n WoRd --> NewWord\n woRd --> newWord\n\n* KeepCaseSameLen( original_word , new_word ) \n\tReturns the new word maintaining case\n\t Keeps the case exactly the same letter-for-letter\n\t It does work if the words aren't the same length, as it truncates or\n\t just coppies the case of the word for the length of the original word.\n\n* :SubstituteCase#\\ctoto\\(Titi\\)tata#\\1Tutu#g\n totoTitiTata -> titiTutu\n TotoTitiTata -> TitiTutu\n tototititata -> tititutu\n tototitiTata -> titiTutu\n TototitiTata -> TitiTutu\n",
"install_details": "Place in plugin directory",
"versions": [
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=6942",
"filename": "keepcase.vim",
"script_version": "2.0",
"date": "2007-04-04",
"vim_version": "6.0",
"author": {
"user_id": "14",
"user_name": "mgeddes",
"first_name": "Michael",
"last_name": "Geddes",
"email": "[email protected]",
"homepage": ""
},
"release_notes": "Version from Luc Hermitte. Includes :SubstituteCase command as well as some extra cases handled."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=7",
"filename": "keepcase.vim",
"script_version": "1.1",
"date": "2001-05-29",
"vim_version": "6.0",
"author": {
"user_id": "14",
"user_name": "mgeddes",
"first_name": "Michael",
"last_name": "Geddes",
"email": "[email protected]",
"homepage": ""
},
"release_notes": "Initial upload"
}
]
}