added ALOT changes: SLIME, vimpyter, firenvim and <leader>

This commit is contained in:
Daniel Knüttel 2021-03-01 14:55:18 +01:00
parent 1e88d3e6d9
commit 3f97d2c442

View File

@ -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 <Up> <Nop>
inoremap <Down> <Nop>
@ -48,6 +51,9 @@ set nohlsearch
" Relative numbers are great.
set number relativenumber
" I user :terminal quite often.
nnoremap <leader>t :sp<Cr>:terminal<Cr>a
"====================== 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 ===========================
@ -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 <leader>r <Plug>SlimeRegionSend
nmap <leader>r <Plug>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 <C-j> <C-n>
set fileformat=dos
endif