Skip to content

Commit

Permalink
Update mappings in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mogelbrod committed Jun 5, 2020
1 parent b61984c commit 2cca20a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Plug 'mogelbrod/vim-jsonpath'
let g:jsonpath_register = '*'
" Define mappings for json buffers
au FileType json noremap <buffer> <silent> <expr> <leader>p jsonpath#echo()
au FileType json noremap <buffer> <silent> <expr> <leader>g jsonpath#goto()
au FileType json noremap <buffer> <silent> <leader>d :call jsonpath#echo()<CR>
au FileType json noremap <buffer> <silent> <leader>g :call jsonpath#goto()<CR>
```

### Python support in vim
Expand All @@ -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 <buffer> <silent> <expr> <leader>p jsonpath#echo()
au FileType json noremap <buffer> <silent> <expr> <leader>g jsonpath#goto()
au FileType json noremap <buffer> <silent> <leader>d :call jsonpath#echo()<CR>
au FileType json noremap <buffer> <silent> <leader>g :call jsonpath#goto()<CR>
```

* If you want global mappings:
* If you prefer global mappings:
```vim
noremap <silent> <expr> <leader>p jsonpath#echo()
noremap <silent> <expr> <leader>g jsonpath#goto()
noremap <buffer> <silent> <leader>d :call jsonpath#echo()<CR>
noremap <buffer> <silent> <leader>g :call jsonpath#goto()<CR>
```

## Configuration
Expand Down

0 comments on commit 2cca20a

Please sign in to comment.