From 3c07fde676dd40a11d2233d80f2cdedb4ae02c97 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 1 Jul 2022 11:47:31 +0200 Subject: Switch between multiple R versions, pending updates --- vimrc | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 5ec86a0..d078273 100644 --- a/vimrc +++ b/vimrc @@ -1,5 +1,5 @@ " vimrc of Johannes Ranke -" Last Change: Mon Sep 20, 2021 at 04:36 PM +0200 +" Last Change: Fri Jul 01, 2022 at 11:47 AM +0200 " default settings (much is handled by tpope/sensible) {{{1 set ts=2 set sw=2 @@ -17,6 +17,9 @@ set hid "que to slow buffer switching, see https://github.com/neovim/neovim/issu let maplocalleader = "," let mapleader = ";" +" lilypond runtime (https://wiki.debian.org/LilyPond) +set runtimepath+=/usr/share/lilypond/2.22.0/vim/ + " Plugins managed by vim-plug {{{1 call plug#begin('~/.vim/plugged') @@ -50,6 +53,7 @@ let g:mergetool_prefer_revision = 'local' " File system exploration Plug 'scrooloose/nerdtree' +Plug 'junegunn/fzf' " Bracketed paste Plug 'ConradIrwin/vim-bracketed-paste' @@ -57,9 +61,13 @@ Plug 'ConradIrwin/vim-bracketed-paste' " Show and manage marks Plug 'kshenoy/vim-signature' +" vimcmdline plugin {{{1 +Plug 'jalvesaq/vimcmdline' +let cmdline_map_start = 's' + " R plugin {{{1 -Plug 'jalvesaq/Nvim-R' -"Plug '~/git/Nvim-R', { 'branch': 'rstudio' } +"Plug 'jalvesaq/Nvim-R' +Plug 'jalvesaq/Nvim-R', {'branch': 'stable'} vmap r :call SendSelectionToR("echo", "down") let R_assign = 0 let R_pdfviewer = 'okular' @@ -74,13 +82,14 @@ let R_nvim_wd = 1 " set working dir to vims working dir Plug 'mllg/vim-devtools-plugin' -" The following is adapted from issue https://github.com/jalvesaq/Nvim-R/issues/476 -function StartRdevel() - let g:R_path = '~/svn/R/r-devel/build/bin' - call StartR("R-devel") +" The following is taken from issue https://github.com/jalvesaq/Nvim-R/issues/476 +function StartRFromPath(path) + let g:R_path = a:path + call StartR("R") endfunction -nmap ,rx :call StartRdevel() +nmap ,rx :call StartRFromPath('/home/jranke/svn/R/r-devel/build/bin') +nmap ,ry :call StartRFromPath('/home/jranke/svn/R/r-4-1/build/bin') " julia Plug 'JuliaEditorSupport/julia-vim' @@ -110,9 +119,9 @@ noremap \bb i\begin{block}{}\end{block}3k14li noremap \bc i\begin{center}\end{center}2ki noremap \bf i\begin{frame}{}%{{{3\end{frame}3k14li noremap \bi i\begin{itemize}[<+->]\item \end{itemize}k8li -noremap \bo i\begin{columns}\begin{column}{}\end{column}\end{columns}3k17li +noremap \bo i\begin{columns}\begin{column}{.5\textwidth}\end{column}\begin{column}{.5\textwidth}\end{column}\end{columns}6ki noremap \bs i\source{}li -noremap \bt i\begin{table}\begin{tabular}{}\end{tabular}\end{table}3ki +noremap \bt i\begin{tabular}{}\end{tabular}3k$i noremap \eq i\question[2]\begin{solution}[2cm]\end{solution}3kA " EnhancedCommentify {{{1 -- cgit v1.2.1