-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
154 additions
and
38 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pack: | ||
if [ ! -d dist ]; then mkdir dist; fi | ||
cd .. && zip -r json.vim/dist/json.vim.zip json.vim/autoload | ||
cd .. && unzip -l json.vim/dist/json.vim.zip | ||
cd .. && zip -r json-ponyfill.vim/dist/json-ponyfill.vim.zip json-ponyfill.vim/autoload | ||
cd .. && unzip -l json-ponyfill.vim/dist/json-ponyfill.vim.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
# json.vim | ||
# json-ponyfill.vim | ||
|
||
## Install (Pathogen) | ||
Provide `json_decode` and `json_encode` to the former version of VIM. | ||
|
||
```viml | ||
function! s:json_decode(json) | ||
if !exists("*json_decode") | ||
return json_ponyfill#json_decode(a:json) | ||
endif | ||
return json_decode(a:json) | ||
endfunction | ||
function! s:json_encode(json) | ||
if !exists("*json_encode") | ||
return json_ponyfill#json_encode(a:json) | ||
endif | ||
return json_encode(a:json) | ||
endfunction | ||
``` | ||
git clone https://github.com/retorillo/json.vim ~/.vim/bundle/json.vim | ||
|
||
## Install (Pathogen) | ||
|
||
```bash | ||
git clone https://github.com/retorillo/json-ponyfill.vim ~/.vim/bundle/json-ponyfill.vim | ||
``` | ||
|
||
## License | ||
|
||
MIT license | ||
Distributed under the MIT license | ||
|
||
Copyright (C) 2016 Retorillo | ||
Copyright (C) 2016-2017 Retorillo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters