diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-10-26 23:15:38 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-10-26 23:15:38 +0200 |
commit | db361995eff1cb02caa52e1817fa70112815fd7a (patch) | |
tree | b49fc79d4e4c8f41d20d4f922812199e27a9e91c /vim/.vimrc | |
parent | 02f88dadb10e05b0ee9b2571fc6856107dd2ec93 (diff) |
[vim] Add iron.nvim for easy interaction with REPL
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -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 <c-p>l :BLines<cr> nnoremap <c-p>m :Marks<cr> nnoremap <c-p>t :Tags<cr> -imap <c-x><c-l> <plug>(fzf-complete-line) imap <c-x><c-f> <plug>(fzf-complete-file) " LLDB @@ -119,6 +120,12 @@ nnoremap <Leader>gc :Gcommit<cr> nnoremap <Leader>gr :Gread<cr> nnoremap <Leader>gd :Gdiff<cr> +" Iron +let g:iron_map_defaults=0 +nmap yr <Plug>(iron-send-motion) +nmap yryr Vyr +xmap yr <Plug>(iron-send-motion) + " Easy align xmap ga <Plug>(EasyAlign) nmap ga <Plug>(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="<tab>" @@ -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 |