From 2cca20ac798320589024a5657a790057209706c8 Mon Sep 17 00:00:00 2001 From: Victor Hallberg Date: Fri, 5 Jun 2020 11:57:39 +0200 Subject: [PATCH] Update mappings in readme --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 510a8d4..d18c51d 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ Plug 'mogelbrod/vim-jsonpath' let g:jsonpath_register = '*' " Define mappings for json buffers -au FileType json noremap p jsonpath#echo() -au FileType json noremap g jsonpath#goto() +au FileType json noremap d :call jsonpath#echo() +au FileType json noremap g :call jsonpath#goto() ``` ### Python support in vim @@ -38,14 +38,14 @@ Mappings are not provided by default but can easily be added to your `.vimrc`. * If you only want mappings when working with `.json` files: ```vim - au FileType json noremap p jsonpath#echo() - au FileType json noremap g jsonpath#goto() + au FileType json noremap d :call jsonpath#echo() + au FileType json noremap g :call jsonpath#goto() ``` -* If you want global mappings: +* If you prefer global mappings: ```vim - noremap p jsonpath#echo() - noremap g jsonpath#goto() + noremap d :call jsonpath#echo() + noremap g :call jsonpath#goto() ``` ## Configuration