From d140b98cba4b37805e4f2b112e93c87ae6adbe73 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 27 Jul 2021 17:46:45 +0100 Subject: [vim] Fix issue with got, goT, gof, goF --- vim/.vim/spell/en.utf-8.add | 1 + vim/.vim/spell/en.utf-8.add.spl | Bin 1194 -> 1207 bytes vim/.vimrc | 29 +++++++++++++++++++---------- 3 files changed, 20 insertions(+), 10 deletions(-) (limited to 'vim') diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add index 5e08f9c..e611664 100644 --- a/vim/.vim/spell/en.utf-8.add +++ b/vim/.vim/spell/en.utf-8.add @@ -74,3 +74,4 @@ subfolder postdoc Gaussians discretizations +interpolant diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl index 2fc2668..8a0bad8 100644 Binary files a/vim/.vim/spell/en.utf-8.add.spl and b/vim/.vim/spell/en.utf-8.add.spl differ diff --git a/vim/.vimrc b/vim/.vimrc index 6184181..7d5f9ff 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -17,7 +17,7 @@ Plug 'airblade/vim-gitgutter' Plug 'AndrewRadev/splitjoin.vim' Plug 'easymotion/vim-easymotion' Plug 'honza/vim-snippets' -Plug 'jamessan/vim-gnupg' +Plug 'jamessan/vim-gnupg', { 'branch': 'main' } Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'junegunn/goyo.vim' @@ -71,7 +71,8 @@ if has("nvim") endif if has("nvim") && hostname() != "peuplier" - " Plug 'neovim/nvim-lsp' + Plug 'neovim/nvim-lsp' + Plug 'neovim/nvim-lspconfig' endif " Colors @@ -265,6 +266,7 @@ silent! set breakindent let &showbreak='--> ' set clipboard^=unnamedplus,unnamed " set spellfile="$HOME/.vim/spell/en.utf-8.add" +set spelllang=fr,en if !has("nvim") set encoding=utf-8 endif @@ -310,10 +312,10 @@ nnoremap cqo :copen nnoremap cqh :colder nnoremap cqc :cclose -nnoremap got :call system('urxvt -cd '.getcwd().' &') -nnoremap goT :call system('urxvt -cd '.expand("%:p:h").' &') -nnoremap gof :call system('urxvt -e vifm '.getcwd().' '.getcwd().' &') -nnoremap goF :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &') +nnoremap got :call system('urxvt -cd '.shellescape(getcwd()).' &') +nnoremap goT :call system('urxvt -cd '.shellescape(expand("%:p:h")).' &') +nnoremap gof :call system('urxvt -e vifm '.shellescape(getcwd()).' '.shellescape(getcwd()).' &') +nnoremap goF :call system('urxvt -e vifm '.shellescape(expand("%:p:h")).' '.shellescape(expand("%:p:h")).' &') nnoremap \h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp, nnoremap Y y$ @@ -512,10 +514,7 @@ endif " nnoremap lua vim.lsp.stop_client(vim.lsp.get_active_clients()) " endif - function! s:remove_leading_whitespaces(code) - echom "test" - " Check if the first line is indented let leading_spaces = matchstr(a:code, '^\s\+') @@ -531,5 +530,15 @@ function! s:remove_leading_whitespaces(code) endfunction let g:ripple_repls = { - \ "python": ["ipython", "\[200~", "\[201~", 1, function('s:remove_leading_whitespaces')] + \ "python": ["ipython", "\[200~", "\[201~", 1, function('s:remove_leading_whitespaces')], + \ "r": "radian" \ } + +" let g:ripple_repls = { +" \ "python": ["ipython", "", "", 1] +" \ } + + +" let g:ripple_repls = { "python": ["ipython", "\", "\\", 1] } + +autocmd FileType tex let b:surround_124 = "\\lvert \r \\rvert" -- cgit v1.2.3