summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2020-05-07 13:26:13 +0200
committer= <=>2020-05-08 20:09:33 +0200
commit023965179aab25338fc9c731da98e9f0bc70743d (patch)
tree3440267634b0e8bd9801b4e8ed20516382791b35
parent1f96baa289bed7da88f550c09e8ebe521609167d (diff)
downloadvimrc-023965179aab25338fc9c731da98e9f0bc70743d.tar.gz
vimrc-023965179aab25338fc9c731da98e9f0bc70743d.tar.bz2
vimrc-023965179aab25338fc9c731da98e9f0bc70743d.zip
feature:add snippet voor axios get
-rw-r--r--skeletons/axget.js3
-rw-r--r--vimrc.d/snippets.vim1
2 files changed, 4 insertions, 0 deletions
diff --git a/skeletons/axget.js b/skeletons/axget.js
new file mode 100644
index 0000000..90fc8cf
--- /dev/null
+++ b/skeletons/axget.js
@@ -0,0 +1,3 @@
1axios.get('https://acme.com/api/endpoint')
2 .then(this._handleOk.bind(this))
3 .catch(this._handleError.bind(this));
diff --git a/vimrc.d/snippets.vim b/vimrc.d/snippets.vim
index 2c585df..e758b9e 100644
--- a/vimrc.d/snippets.vim
+++ b/vimrc.d/snippets.vim
@@ -2,3 +2,4 @@ nnoremap ,html :-1read $HOME/.vim/skeletons/skeleton.html<CR>2jwf>a
2nnoremap ,gpl :-1read $HOME/.vim/skeletons/gplintro.txt<CR>jf22lR 2nnoremap ,gpl :-1read $HOME/.vim/skeletons/gplintro.txt<CR>jf22lR
3nnoremap ,get :-1read $HOME/.vim/skeletons/restget.java<CR>3j^ 3nnoremap ,get :-1read $HOME/.vim/skeletons/restget.java<CR>3j^
4nnoremap ,post :-1read $HOME/.vim/skeletons/restpost.java<CR>3j^ 4nnoremap ,post :-1read $HOME/.vim/skeletons/restpost.java<CR>3j^
5nnoremap ,axget :-1read $HOME/.vim/skeletons/axget.js<CR>fa