added ALOT changes: SLIME, vimpyter, firenvim and <leader>
This commit is contained in:
parent
1e88d3e6d9
commit
3f97d2c442
42
init.vim
42
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 <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 ===========================
|
||||
|
@ -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 <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
|
||||
|
|
Loading…
Reference in New Issue
Block a user