From eaa1df2b0c717bf6ef8312e092d7fe9853328d25 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 15 May 2020 22:56:01 +0300 Subject: init.vim cleanup, createpaper mapping --- .config/nvim/init.vim | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index c76c68a..d36cd82 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -135,18 +135,11 @@ function! CreatePaper(citekey) put! =l:timestap put =l:text - endfunction " }}} Function " "{{{Misc Settings -let g:slime_target = "tmux" -let g:slime_paste_file = "$HOME/.slime_paste" -let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"} -let g:slime_no_mappings = 1 -nmap SlimeParagraphSend - " Use deoplete. let g:deoplete#enable_at_startup = 1 @@ -213,11 +206,13 @@ set diffopt=algorithm:patience set termguicolors colorscheme moonfly let g:moonflyUndercurls = 0 - " }}} "{{{ Mappings +" call CreatePaper on word below cursor +nnoremap cp :call CreatePaper(expand('')) + " If you like "Y" to work from the cursor to the end of line (which is more " logical, but not Vi-compatible) map Y y$ @@ -343,7 +338,6 @@ let g:ale_pattern_options = {'\.wiki$': {'ale_enabled': 0}} "}}} "{{{ Ledger -" let g:ledger_extra_options = '--pedantic --explicit --check-payees' let g:ledger_maxwidth = 48 let g:ledger_fillstring = ' ~' "}}} @@ -409,3 +403,11 @@ let g:gutentags_generate_on_missing = 1 let g:gutentags_generate_on_write = 1 let g:gutentags_generate_on_empty_buffer = 0 " }}} + +" vim-slime {{{ +let g:slime_target = "tmux" +let g:slime_paste_file = "$HOME/.slime_paste" +let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"} +let g:slime_no_mappings = 1 +nmap SlimeParagraphSend +" }}} Slime -- cgit v1.2.3-70-g09d2