Comments (8)
I did not know about them. Thanks for the news! How can I see R running inside a Vim's buffer through slimv? I already installed slimv. What should I do now? I did not find instructions on how to install swank-r for Vim.
You can change all Nvim-R key bindings. Please, see :h Nvim-R-key-bindings
.
from nvim-r.
Hi, thanks for the quick answer!
Well, I'm using this ~/.vim/after/syntax/r.vim
:
let g:swank_port=4009
let g:slimv_swank_cmd='!nohup setsid /usr/bin/xterm -e R -e "X11(); while (1) { swank() }" > /tmp/swankr.txt 2>&1 &'
let g:slimv_simple_compl=1
setlocal iskeyword-=*
setlocal iskeyword-==
setlocal iskeyword-=[
setlocal iskeyword-=]
:nnoremap <f2> "ryap"r:call SlimvEvalRegion()<CR>
:nnoremap <f3> "syap"s:call SlimvEvalSelection("t", getreg("r"))<CR>
along with the R parts from https://github.com/phmarek/swankr.
Yes, I know that I can change all key bindings (and have done so for too many plugins already) - but having some way to get them compatible out-of-the-box via a single :let g:...=
would be nice, too!
from nvim-r.
Today, I had time to look at swank. It is interesting to see R running in a Vim's buffer, but it has some bugs, e.g., when I pressed the backspace key there was an error. Neovim terminal is definitively better.
Regarding your question, there is no way of changing the key bindings other than mapping the <Plug>
s one by one because the default key bindings are hard-coded in R/common_global.vim
and ftplugin/*.vim
. And I cannot change the default key bindings because they are in use for years now.
from nvim-r.
I am closing the issue. If someone has a better solution than mapping the <Plug>
s, please, either reopen the issue or make a pull request.
from nvim-r.
Sorry for not responding earlier; I'd have hoped for a 2nd set of bindings in that script, that are used via simply changing a single configuration parameter - like :set g:R_use_slimv_compatible_keys=1
...
from nvim-r.
I could accept a pull request for this if the other software were highly popular. I guess this is not the case of slimv. So, in my opinion your demand is very specific, and in this case I think it would be more appropriate if someone could write a Vim script to be listed as part of R_source
. Please, see:
:h R_source
from nvim-r.
@phmarek , are you aware that you can map to your own liking in your own config? You don't need to use the defaults?
ftplugin/r.vim
map <buffer> ,eb <Plug>RSendFile
etc...
from nvim-r.
@mdlerch, yes, I know.
But I guess there'll be quite a few people using slimv already - and why should each of them configure the keys on her own?
from nvim-r.
Related Issues (20)
- SendLineToR fails with error "unexpected numeric constant" HOT 3
- Fresh LunarVim install with Nvim-R exits with SIGABRT HOT 7
- `R_app`, `R_cmd` options are not respected in LunarVim HOT 7
- Large objects don't seem to be able to fill secondary lists with completions (<C-n><C-o>) HOT 5
- Autocomplete for function parameters stops working when R opens HOT 2
- `RQuarto()` should escape Windows path seperator before sending to R HOT 2
- Unknown function: nvim_set_option_value HOT 2
- No new features in Nvim-R
- Is it possible to change the indentation behavior after parenthesis to be the same as curly brace? HOT 3
- How to use Python in Quarto with Nvim-R HOT 3
- Announcement: stable and oldstable branches deleted
- Problem with roxygen commands HOT 4
- Error on keyword completion HOT 2
- Incorrect Rendering of Tufte Style Output in R Markdown Document HOT 5
- Nvimcom fails to install on FreeBSD HOT 5
- Cannot start R: nvimrserver not running HOT 5
- neovim 0.10 version startup issue HOT 5
- Issues with versions after v0.9.17 HOT 18
- The completion candidates order is not the parameters true order HOT 3
- R_assign = 2 breaks dot-repeat HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-r.