From 3f97d2c442168c6b018bd2dd124a9e095872174d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Mon, 1 Mar 2021 14:55:18 +0100 Subject: [PATCH] added ALOT changes: SLIME, vimpyter, firenvim and --- init.vim | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 276c274..b6458bf 100644 --- a/init.vim +++ b/init.vim @@ -16,6 +16,9 @@ set mouse="" " Plain old cursor in every mode. set guicursor= +" Use a different mapleader. +let mapleader='°' + " Don't use arrow keys unless in command mode. inoremap inoremap @@ -48,6 +51,9 @@ set nohlsearch " Relative numbers are great. set number relativenumber +" I user :terminal quite often. +nnoremap t :sp:terminala + "====================== Code Style Related Settings ============================ "=============================================================================== @@ -96,6 +102,17 @@ Plug 'SirVer/ultisnips' " plugin for code highlighting. Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} +" SLIME brings REPL features to VIM. +" I will try this out. +Plug 'jpalardy/vim-slime' + +" This plugin should allow editing Jupyter Notebooks +" in VIM. +Plug 'szymonmaszke/vimpyter' + +" Firenvim allows to use neovim as the +" firefox text editor. +Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } } call plug#end() "===================== Language Server Configuration =========================== @@ -200,7 +217,7 @@ colorscheme molokai "=================== Settings Related to Highlighting ========================== "=============================================================================== -let g:vimsyn_embed= 'l' +let g:vimsyn_embed = 'l' "==================== Settings Related to Treesitter =========================== @@ -211,3 +228,26 @@ let g:vimsyn_embed= 'l' "TSInstall c "TSInstall cpp "TSInstall bash + + + +"========================= Settings Related to SLIME =========================== +"=============================================================================== + +let g:slime_target = 'neovim' +let g:slime_no_mappings = 1 +xmap r SlimeRegionSend +nmap r SlimeParagraphSend + +"======================== Settings Related to IPYNB ============================ +"=============================================================================== +" You have to install notedown pip3 install --user notedown. + + +"===================== Settings Related to Firenvim ============================ +"=============================================================================== + +if exists('g:started_by_firenvim') + imap + set fileformat=dos +endif