summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc29
1 files changed, 19 insertions, 10 deletions
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<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"