diff options
-rw-r--r-- | mutt/.mutt/muttrc | 2 | ||||
l--------- | vim/.config/nvim/UltiSnips | 1 | ||||
l--------- | vim/.config/nvim/mySnippets | 1 | ||||
-rw-r--r-- | vim/.vim/spell/en.utf-8.add | 1 | ||||
-rw-r--r-- | vim/.vim/spell/en.utf-8.add.spl | bin | 1181 -> 1194 bytes | |||
-rw-r--r-- | vim/.vimrc | 32 |
6 files changed, 31 insertions, 6 deletions
diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index 356a5a8..280bac6 100644 --- a/mutt/.mutt/muttrc +++ b/mutt/.mutt/muttrc @@ -118,5 +118,5 @@ alternates ".*@vaes.uk" # HTML email macro compose 5 "F $HOME/.mutt/filter<enter>y^T^Utext/html; charset=utf-8<enter><enter>" -set signature="$HOME/.mutt/signature" +# set signature="$HOME/.mutt/signature" # vim: ft=muttrc diff --git a/vim/.config/nvim/UltiSnips b/vim/.config/nvim/UltiSnips new file mode 120000 index 0000000..2e8bc66 --- /dev/null +++ b/vim/.config/nvim/UltiSnips @@ -0,0 +1 @@ +../../../../.vim/UltiSnips
\ No newline at end of file diff --git a/vim/.config/nvim/mySnippets b/vim/.config/nvim/mySnippets deleted file mode 120000 index e7aff9e..0000000 --- a/vim/.config/nvim/mySnippets +++ /dev/null @@ -1 +0,0 @@ -../../../../.vim/mySnippets
\ No newline at end of file diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add index c023ef9..5e08f9c 100644 --- a/vim/.vim/spell/en.utf-8.add +++ b/vim/.vim/spell/en.utf-8.add @@ -73,3 +73,4 @@ preconditioner subfolder postdoc Gaussians +discretizations diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl Binary files differindex 3bf5f26..2fc2668 100644 --- a/vim/.vim/spell/en.utf-8.add.spl +++ b/vim/.vim/spell/en.utf-8.add.spl @@ -150,6 +150,8 @@ endif let g:remembrall_suffixes = [""] let g:ripple_winpos = "vertical" let g:ripple_term_name = "term: ripple" +nmap ,w <Plug>(ripple_send_motion)iw:Ripple <c-v><cr><cr> +nmap ,<cr> :Ripple <c-v><cr><cr> " Ultisnips nnoremap cps :UltiSnipsEdit<cr> @@ -184,8 +186,8 @@ let g:UltiSnipsExpandTrigger="<tab>" let g:UltiSnipsJumpBackwardTrigger="<s-tab>" let g:UltiSnipsJumpForwardTrigger="<tab>" let g:UltiSnipsListSnippets="<c-l>" -let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] -let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" +" let g:UltiSnipsSnippetDirectories=['UltiSnips'] +" let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" " let g:UltiSnipsUsePythonVersion=3 " Vimtex @@ -295,8 +297,8 @@ nnoremap <nowait> <c-d> :q<cr> nnoremap ,bd :ls<cr>:bd<space> nnoremap ,te :tabedit<space> -nnoremap ,tl :+tabmove<cr> -nnoremap ,th :-tabmove<cr> +nnoremap gl :+tabmove<cr> +nnoremap gh :-tabmove<cr> nnoremap ,t0 :tabmove 0<cr> nnoremap ,t$ :tabmove<cr> @@ -509,3 +511,25 @@ endif " nnoremap <silent> <c-g>t <cmd>lua vim.lsp.buf.type_definition()<cr> " 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\+') + + if leading_spaces == "" + return a:code + endif + + " Calculate indentation + let indentation = strlen(leading_spaces) + + " Remove further indentations + return substitute(a:code, '\(^\|\r\zs\)\s\{'.indentation.'}', "", "g") +endfunction + +let g:ripple_repls = { + \ "python": ["ipython", "\<esc>[200~", "\<esc>[201~", 1, function('s:remove_leading_whitespaces')] + \ } |