summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2021-07-27 17:46:45 +0100
committerUrbain Vaes <urbain@vaes.uk>2021-07-27 17:46:45 +0100
commitd140b98cba4b37805e4f2b112e93c87ae6adbe73 (patch)
tree405fbe16022d26009f61bf5120f2b3e8f463062a
parent6dc1aaadb5232530b903b3f71e124ec59d096874 (diff)
[vim] Fix issue with got, goT, gof, goF
-rw-r--r--mutt/.mutt/colors.muttrc1
-rw-r--r--papis/.config/papis/config2
-rw-r--r--vim/.vim/spell/en.utf-8.add1
-rw-r--r--vim/.vim/spell/en.utf-8.add.splbin1194 -> 1207 bytes
-rw-r--r--vim/.vimrc29
5 files changed, 23 insertions, 10 deletions
diff --git a/mutt/.mutt/colors.muttrc b/mutt/.mutt/colors.muttrc
index 083cac5..85693b9 100644
--- a/mutt/.mutt/colors.muttrc
+++ b/mutt/.mutt/colors.muttrc
@@ -17,6 +17,7 @@ color index color195 default "~U"
color index color2 default "~Q"
color index color1 default "~D"
color index color167 default "~F"
+color index color172 default "~X 1-"
color quoted cyan default
color quoted1 magenta default
diff --git a/papis/.config/papis/config b/papis/.config/papis/config
new file mode 100644
index 0000000..6c1ae79
--- /dev/null
+++ b/papis/.config/papis/config
@@ -0,0 +1,2 @@
+[papers]
+dir = ~/Documents/papers
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
--- a/vim/.vim/spell/en.utf-8.add.spl
+++ b/vim/.vim/spell/en.utf-8.add.spl
Binary files 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<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"