From 13429d1b0227160157ec2e66f411321c94af2cbd Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 17 Nov 2020 23:57:41 -0500 Subject: Starting vim spring cleanup --- .config/nvim/ftplugin/csv.vim | 0 .config/nvim/ftplugin/go.vim | 17 +++++++++++++++++ .config/nvim/ftplugin/python.vim | 0 .config/nvim/ftplugin/r.vim | 4 ++++ .config/nvim/ftplugin/rmd.vim | 6 ++++++ .config/nvim/ftplugin/rnoweb.vim | 8 ++++++++ .config/nvim/ftplugin/tex.vim | 0 7 files changed, 35 insertions(+) create mode 100644 .config/nvim/ftplugin/csv.vim create mode 100644 .config/nvim/ftplugin/go.vim create mode 100644 .config/nvim/ftplugin/python.vim create mode 100644 .config/nvim/ftplugin/r.vim create mode 100644 .config/nvim/ftplugin/rmd.vim create mode 100644 .config/nvim/ftplugin/rnoweb.vim create mode 100644 .config/nvim/ftplugin/tex.vim (limited to '.config/nvim/ftplugin') diff --git a/.config/nvim/ftplugin/csv.vim b/.config/nvim/ftplugin/csv.vim new file mode 100644 index 0000000..e69de29 diff --git a/.config/nvim/ftplugin/go.vim b/.config/nvim/ftplugin/go.vim new file mode 100644 index 0000000..9d2ab4e --- /dev/null +++ b/.config/nvim/ftplugin/go.vim @@ -0,0 +1,17 @@ +" Go deoplete +let g:deoplete#sources#go#gocode_binary = '$GOPATH/bin/gocode' +" GoRun Split Reuse +function! ReuseVimGoTerm(cmd) abort + for w in nvim_list_wins() + if "goterm" == nvim_buf_get_option(nvim_win_get_buf(w), 'filetype') + call nvim_win_close(w, v:true) + break + endif + endfor + execute a:cmd +endfunction +let g:go_term_enabled = 1 +let g:go_term_mode = "silent keepalt rightbelow 35 vsplit" +let g:go_def_reuse_buffer = 1 +autocmd FileType go nmap r :call ReuseVimGoTerm('GoRun') + diff --git a/.config/nvim/ftplugin/python.vim b/.config/nvim/ftplugin/python.vim new file mode 100644 index 0000000..e69de29 diff --git a/.config/nvim/ftplugin/r.vim b/.config/nvim/ftplugin/r.vim new file mode 100644 index 0000000..309483b --- /dev/null +++ b/.config/nvim/ftplugin/r.vim @@ -0,0 +1,4 @@ +" Nvim-R +let R_rconsole_width = 0 +let R_openpdf = 0 + diff --git a/.config/nvim/ftplugin/rmd.vim b/.config/nvim/ftplugin/rmd.vim new file mode 100644 index 0000000..fae453d --- /dev/null +++ b/.config/nvim/ftplugin/rmd.vim @@ -0,0 +1,6 @@ +" Nvim-R +let R_rconsole_width = 0 +let R_openpdf = 0 +au BufWritePost *.rmd silent! :call RWeave("nobib", 1, 1) +au VimLeave *.rmd !texclear % + diff --git a/.config/nvim/ftplugin/rnoweb.vim b/.config/nvim/ftplugin/rnoweb.vim new file mode 100644 index 0000000..f4b7453 --- /dev/null +++ b/.config/nvim/ftplugin/rnoweb.vim @@ -0,0 +1,8 @@ +autocmd BufEnter * :UltiSnipsAddFiletypes tex.r + +" Nvim-R +let R_rconsole_width = 0 +let R_openpdf = 0 +au BufWritePost *.rnw, silent! :call RWeave("nobib", 1, 1) +au VimLeave *.rnw !texclear % + diff --git a/.config/nvim/ftplugin/tex.vim b/.config/nvim/ftplugin/tex.vim new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3