Vim: remove ipythoncell keybinds
This commit is contained in:
parent
26fa675960
commit
5988baf76b
4 changed files with 10 additions and 56 deletions
vim/.vim
|
@ -2,22 +2,4 @@
|
|||
iabbrev <buffer> #! #!/usr/bin/env julia
|
||||
iabbrev <buffer> initmodeline # vim: set ft=julia ff=unix:
|
||||
|
||||
" IPython cell ===========================================
|
||||
" Enables iPython Cell to copy commands into a julia REPL via tmux
|
||||
let g:ipython_cell_delimit_cells_by = 'tags'
|
||||
let g:ipython_cell_tag = ['##', '# %%', '#%%', '# <codecell>']
|
||||
let g:ipython_cell_highlight_cells = 1
|
||||
|
||||
let g:ipython_cell_run_command = 'Base.run(`clear`); include("{filepath}")'
|
||||
let g:ipython_cell_cell_command = 'include_string(Main, clipboard())'
|
||||
|
||||
" REPL hotkeys. Overwrites default slime studio stuff
|
||||
" Run entire file from top to bottom
|
||||
nnoremap <buffer> <leader>f :IPythonCellRun<CR>
|
||||
" Run current cell
|
||||
nnoremap <buffer> <leader>r :IPythonCellExecuteCell<CR>
|
||||
nnoremap <buffer> <leader>e :IPythonCellExecuteCellJump<CR>
|
||||
" Insert block seperator above
|
||||
nnoremap <buffer> <leader>b O<ESC>S## Block<ESC>vb<C-g>
|
||||
|
||||
" vim: set ff=unix ft=vim:
|
||||
|
|
|
@ -24,28 +24,4 @@ highlight Error NONE
|
|||
" Python: function and class names
|
||||
onoremap ih :execute ":normal! ?def [A-z]\\+(\\\|class [A-z]*\\(:\\\|(\\)\r:noh\rwve"<CR>
|
||||
|
||||
" IPython cell ===========================================
|
||||
" For true REPL-supporting languages
|
||||
let g:ipython_cell_delimit_cells_by = 'tags'
|
||||
let g:ipython_cell_tag = ['##', '# %%', '#%%', '# <codecell>']
|
||||
let g:ipython_cell_highlight_cells = 1
|
||||
|
||||
" Use Makefile for REPL-like experience for most languages
|
||||
let g:ipython_cell_cell_command = '%paste -q'
|
||||
let g:ipython_cell_run_command = '%run {options} "{filepath}"'
|
||||
|
||||
|
||||
hi! link IPythonCell Todo
|
||||
|
||||
" Command hotkeys
|
||||
" Connect to running Jupyter kernel
|
||||
nnoremap <leader>q :JupyterConnect<CR>
|
||||
" Run entire file from top to bottom
|
||||
nnoremap <leader>f :JupyterRunFile<CR>
|
||||
" Run current cell
|
||||
nnoremap <leader>r :JupyterSendCell<CR>
|
||||
nnoremap <leader>e :JupyterSendCell<CR>
|
||||
" Insert block seperator above
|
||||
nnoremap <leader>b O<ESC>S## Block<ESC>vb<C-g>
|
||||
|
||||
" vim: set ff=unix ft=vim:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
" Compile pdf
|
||||
nnoremap <buffer> <leader>r :VimtexCompileSS<CR>
|
||||
nnoremap <buffer> <leader>e :VimtexCompileSS<CR>
|
||||
nnoremap <buffer> <leader>f :VimtexCompileSS<CR>
|
||||
|
||||
" Fix unreadable highlight for matching environments
|
||||
|
|
|
@ -22,9 +22,6 @@ Plug 'junegunn/fzf.vim'
|
|||
Plug 'romainl/vim-cool'
|
||||
" File system bindings
|
||||
Plug 'tpope/vim-eunuch'
|
||||
" Movement extension
|
||||
"Plug 'justinmk/vim-sneak'
|
||||
"Plug 'easymotion/vim-easymotion'
|
||||
Plug 'wakatime/vim-wakatime'
|
||||
|
||||
" Vim windows ====
|
||||
|
@ -171,20 +168,15 @@ let g:slime_studio_command1 = 'echo "make"'
|
|||
let g:slime_studio_command2 = 'echo "make run"'
|
||||
let g:slime_studio_command3 = 'echo "make submit"'
|
||||
|
||||
nnoremap <leader>r :exe "SlimeSend1 " . g:slime_studio_command1<CR>
|
||||
nnoremap <leader><leader>r
|
||||
nnoremap <leader>e :exe "SlimeSend1 " . g:slime_studio_command1<CR>
|
||||
nnoremap <leader><leader>e
|
||||
\ :let g:slime_studio_command1 =
|
||||
\ input("Slime Studio (1): ", g:slime_studio_command1)<CR>
|
||||
|
||||
nnoremap <leader>e :exe "SlimeSend1 " . g:slime_studio_command2<CR>
|
||||
nnoremap <leader><leader>e
|
||||
nnoremap <leader>f :exe "SlimeSend1 " . g:slime_studio_command2<CR>
|
||||
nnoremap <leader><leader>f
|
||||
\ :let g:slime_studio_command2 =
|
||||
\ input("Slime Studio (2): ", g:slime_studio_command2)<CR>
|
||||
|
||||
nnoremap <leader>f :exe "SlimeSend1 " . g:slime_studio_command3<CR>
|
||||
nnoremap <leader><leader>f
|
||||
\ :let g:slime_studio_command3 =
|
||||
\ input("Slime Studio (3): ", g:slime_studio_command3)<CR>
|
||||
endfunction
|
||||
|
||||
call SlimeStudio()
|
||||
|
@ -208,6 +200,7 @@ let g:ale_fixers = {
|
|||
let g:ale_sign_error = '❌'
|
||||
let g:ale_sign_warning = '⚠️'
|
||||
let g:ale_fix_on_save = 0
|
||||
let g:ale_enabled = 0
|
||||
|
||||
|
||||
lua << EOF
|
||||
|
@ -228,7 +221,7 @@ local on_attach = function(client, bufnr)
|
|||
end
|
||||
|
||||
-- TypeScript
|
||||
nvim_lsp.tsserver.setup {
|
||||
nvim_lsp.ts_ls.setup {
|
||||
on_attach = on_attach,
|
||||
filetypes = { "typescript", "typescriptreact", "typescript.tsx" },
|
||||
cmd = { "typescript-language-server", "--stdio" }
|
||||
|
@ -241,6 +234,9 @@ let g:tabby_trigger_mode = 'auto'
|
|||
|
||||
nnoremap <C-\> :let g:tabby_trigger_mode = (g:tabby_trigger_mode == 'auto' ? 'manual' : 'auto')<CR>
|
||||
|
||||
" Psyncup integration (from bin) =========================
|
||||
nnoremap <leader>r :!~/.configs_pointer/psyncup.py --recurse-up --up <CR>
|
||||
|
||||
" FZF setup ==============================================
|
||||
" Open hotkeys for fzf
|
||||
nnoremap <C-p> :Files<CR>
|
||||
|
|
Loading…
Reference in a new issue