From db361995eff1cb02caa52e1817fa70112815fd7a Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 26 Oct 2017 23:15:38 +0200 Subject: [vim] Add iron.nvim for easy interaction with REPL --- vim/.vimrc | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index f0cdbc1..bb6dc15 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -62,12 +62,14 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'vim-scripts/ReplaceWithRegister' Plug 'vim-scripts/gmsh.vim' +Plug 'vim-scripts/paredit.vim' Plug 'wellle/targets.vim' if has("nvim") + " Plug 'roxma/nvim-completion-manager' Plug 'Shougo/deoplete.nvim' - Plug 'radenling/vim-dispatch-neovim' - Plug 'jalvesaq/Nvim-R' + Plug 'zchee/deoplete-jedi' + Plug 'hkupty/iron.nvim' else Plug 'Shougo/neocomplete.vim' endif @@ -100,7 +102,6 @@ nnoremap l :BLines nnoremap m :Marks nnoremap t :Tags -imap (fzf-complete-line) imap (fzf-complete-file) " LLDB @@ -119,6 +120,12 @@ nnoremap gc :Gcommit nnoremap gr :Gread nnoremap gd :Gdiff +" Iron +let g:iron_map_defaults=0 +nmap yr (iron-send-motion) +nmap yryr Vyr +xmap yr (iron-send-motion) + " Easy align xmap ga (EasyAlign) nmap ga (EasyAlign) @@ -178,6 +185,7 @@ let g:neocomplete#sources#omni#input_patterns.tex = \ . '|includestandalone%(\s*\[[^]]*\])?\s*\{[^}]*' \ . ')' let g:deoplete#omni_patterns.tex = g:neocomplete#sources#omni#input_patterns.tex.'\m' +let g:deoplete#sources#jedi#show_docstring = 1 " FZF.vim let g:fzf_buffers_jump = 1 @@ -185,19 +193,13 @@ let g:fzf_buffers_jump = 1 " Gundo let g:gundo_prefer_python3 = 1 -" Idealvimrc +" Localvimrc let g:localvimrc_sandbox = 0 let g:localvimrc_whitelist='/home/*' " NerdTree let g:NERDTreeHijackNetrw = 0 -" Python-mode -let g:pymode_rope=0 - -" Sneak -let g:sneak#use_ic_scs = 1 - " Ultisnips let g:UltiSnipsEditSplit="horizontal" let g:UltiSnipsExpandTrigger="" @@ -368,7 +370,6 @@ augroup vimrc au BufNewFile,BufRead *.pde setf freefem au BufNewFile,BufRead *.plt setf gnuplot au FileType gmsh setlocal makeprg=gmsh\ % - au FileType gmsh execute 'setlocal dict+=~/.vim/words/gmsh.txt' au FileType gnuplot setlocal makeprg=gnuplot\ % au FileType gnuplot setlocal commentstring=#%s au FileType freefem comp freefem -- cgit v1.2.3