added ALOT changes: SLIME, vimpyter, firenvim and <leader>
This commit is contained in:
parent
1e88d3e6d9
commit
3f97d2c442
40
init.vim
40
init.vim
|
@ -16,6 +16,9 @@ set mouse=""
|
||||||
" Plain old cursor in every mode.
|
" Plain old cursor in every mode.
|
||||||
set guicursor=
|
set guicursor=
|
||||||
|
|
||||||
|
" Use a different mapleader.
|
||||||
|
let mapleader='°'
|
||||||
|
|
||||||
" Don't use arrow keys unless in command mode.
|
" Don't use arrow keys unless in command mode.
|
||||||
inoremap <Up> <Nop>
|
inoremap <Up> <Nop>
|
||||||
inoremap <Down> <Nop>
|
inoremap <Down> <Nop>
|
||||||
|
@ -48,6 +51,9 @@ set nohlsearch
|
||||||
" Relative numbers are great.
|
" Relative numbers are great.
|
||||||
set number relativenumber
|
set number relativenumber
|
||||||
|
|
||||||
|
" I user :terminal quite often.
|
||||||
|
nnoremap <leader>t :sp<Cr>:terminal<Cr>a
|
||||||
|
|
||||||
"====================== Code Style Related Settings ============================
|
"====================== Code Style Related Settings ============================
|
||||||
"===============================================================================
|
"===============================================================================
|
||||||
|
|
||||||
|
@ -96,6 +102,17 @@ Plug 'SirVer/ultisnips'
|
||||||
" plugin for code highlighting.
|
" plugin for code highlighting.
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
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()
|
call plug#end()
|
||||||
|
|
||||||
"===================== Language Server Configuration ===========================
|
"===================== Language Server Configuration ===========================
|
||||||
|
@ -211,3 +228,26 @@ let g:vimsyn_embed= 'l'
|
||||||
"TSInstall c
|
"TSInstall c
|
||||||
"TSInstall cpp
|
"TSInstall cpp
|
||||||
"TSInstall bash
|
"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