diff options
author | Urbain Vaes <urbain@vaes.uk> | 2021-07-27 17:46:45 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2021-07-27 17:46:45 +0100 |
commit | d140b98cba4b37805e4f2b112e93c87ae6adbe73 (patch) | |
tree | 405fbe16022d26009f61bf5120f2b3e8f463062a /vim | |
parent | 6dc1aaadb5232530b903b3f71e124ec59d096874 (diff) |
[vim] Fix issue with got, goT, gof, goF
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/spell/en.utf-8.add | 1 | ||||
-rw-r--r-- | vim/.vim/spell/en.utf-8.add.spl | bin | 1194 -> 1207 bytes | |||
-rw-r--r-- | vim/.vimrc | 29 |
3 files changed, 20 insertions, 10 deletions
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 Binary files differindex 2fc2668..8a0bad8 100644 --- a/vim/.vim/spell/en.utf-8.add.spl +++ b/vim/.vim/spell/en.utf-8.add.spl @@ -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<cr> nnoremap cqh :colder<cr> nnoremap cqc :cclose<cr> -nnoremap got :call system('urxvt -cd '.getcwd().' &')<cr> -nnoremap goT :call system('urxvt -cd '.expand("%:p:h").' &')<cr> -nnoremap gof :call system('urxvt -e vifm '.getcwd().' '.getcwd().' &')<cr> -nnoremap goF :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &')<cr> +nnoremap got :call system('urxvt -cd '.shellescape(getcwd()).' &')<cr> +nnoremap goT :call system('urxvt -cd '.shellescape(expand("%:p:h")).' &')<cr> +nnoremap gof :call system('urxvt -e vifm '.shellescape(getcwd()).' '.shellescape(getcwd()).' &')<cr> +nnoremap goF :call system('urxvt -e vifm '.shellescape(expand("%:p:h")).' '.shellescape(expand("%:p:h")).' &')<cr> nnoremap \h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<cr> nnoremap Y y$ @@ -512,10 +514,7 @@ endif " nnoremap <silent> <c-g><c-g> <cmd>lua vim.lsp.stop_client(vim.lsp.get_active_clients())<cr> " 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", "\<esc>[200~", "\<esc>[201~", 1, function('s:remove_leading_whitespaces')] + \ "python": ["ipython", "\<esc>[200~", "\<esc>[201~", 1, function('s:remove_leading_whitespaces')], + \ "r": "radian" \ } + +" let g:ripple_repls = { +" \ "python": ["ipython", "", "", 1] +" \ } + + +" let g:ripple_repls = { "python": ["ipython", "\<esc>", "\<esc>\<cr>", 1] } + +autocmd FileType tex let b:surround_124 = "\\lvert \r \\rvert" |