![]() ![]() Notably missing are the jump list and vim’s powerful autocomplete functions. While RStudio supports a vim mode that has a lot of features (registers, marks, etc.), it’s also missing a lot of things that I like. I can now use vim for everything, including my statistics work in R or Python. The advantages will appeal mostly to people who love vim. Same as above but the REPLs are moved to other tmux windows so they are out of sight I would say the main disadvantage is setup cost.Īt the end of the day, I am basically getting a very raw IDE.įor a lot of people, especially those in fields like mine, this just isn’t necessary. Running this in WSL requires an X server like Xming so the plots appear in your desktop. The other big part of a data analysis IDE is begin able to see plots right away. I have posted all dotfiles on my github, so feel free to steal it if you’d like. nf is stolen from various stack overflow posts, blogs, and videos. So I changed the slime mappings to something that worked a little better for my workflow.īind-key -T copy-mode-vi v send-keys -X begin-selectionīind-key -T copy-mode-vi y send-keys -X copy-selectionīind-key -T copy-mode-vi r send-keys -X rectangle-toggleīind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"Īnd then using mouse-select by holding and using the usual right click copy from WSL.Ī lot of lines from my. However, this doesn’t seem to work on WSL. Thankfully, there is a lot of documentation for both tools.īy default, vim-slime sends code from one window to another using. nf can be tricky if you haven’t done it before (it was for me). I have used tmux on and off before, so that’s what I decided to go with. Therefore, we need a multiplexer like GNU screen or tmux to get it operational. Vim-slime in essence just sends text from one terminal to another. However, that’s just scratching the surface of what we need to do. I use vim-plug and just added the plugin to my. ![]() ![]() Installing vim-slime itself is pretty easy. Tmux window with vim on the left, a Python and R REPL on the right, and some plot outputs! I had read about the vim-slime plugin for a while but it wasn’t until this past weekend that I finally got around to setting it up and adding it to my rc files.īut is it useful? Let’s play around with it and find out. What I really wanted though was to be able to edit code in the terminal and then run said code immediately like one would do in a typical IDE. So I stuck to my ways of the past, relying on large programs like RStudio, Spyder, and more recently Jupyter notebooks. The process of writing code in a text file and then running said code in a terminal was too slow and too tedious. However, my work as a statistician often required experimenting with different tools, reading help docs, and playing around with visualizations. It’s no personal secret that I am a big fan of vim and terminal tools. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |