summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2020-05-15 22:56:01 +0300
committerYigit Sever2020-05-15 22:56:01 +0300
commiteaa1df2b0c717bf6ef8312e092d7fe9853328d25 (patch)
treea0c28e96c51b0745eb6c0a7475bceea298cffd5e /.config
parent68de9265655f6a6a92c12aa9a948b9dbef311c08 (diff)
downloaddotfiles-eaa1df2b0c717bf6ef8312e092d7fe9853328d25.tar.gz
dotfiles-eaa1df2b0c717bf6ef8312e092d7fe9853328d25.tar.bz2
dotfiles-eaa1df2b0c717bf6ef8312e092d7fe9853328d25.zip
init.vim cleanup, createpaper mapping
Diffstat (limited to '.config')
-rwxr-xr-x.config/nvim/init.vim20
1 files 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)
135 135
136 put! =l:timestap 136 put! =l:timestap
137 put =l:text 137 put =l:text
138
139endfunction 138endfunction
140" }}} Function " 139" }}} Function "
141 140
142"{{{Misc Settings 141"{{{Misc Settings
143 142
144let g:slime_target = "tmux"
145let g:slime_paste_file = "$HOME/.slime_paste"
146let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"}
147let g:slime_no_mappings = 1
148nmap <c-\> <Plug>SlimeParagraphSend
149
150" Use deoplete. 143" Use deoplete.
151let g:deoplete#enable_at_startup = 1 144let g:deoplete#enable_at_startup = 1
152 145
@@ -213,11 +206,13 @@ set diffopt=algorithm:patience
213set termguicolors 206set termguicolors
214colorscheme moonfly 207colorscheme moonfly
215let g:moonflyUndercurls = 0 208let g:moonflyUndercurls = 0
216
217" }}} 209" }}}
218 210
219"{{{ Mappings 211"{{{ Mappings
220 212
213" call CreatePaper on word below cursor
214nnoremap <leader>cp :call CreatePaper(expand('<cword>'))<CR>
215
221" If you like "Y" to work from the cursor to the end of line (which is more 216" If you like "Y" to work from the cursor to the end of line (which is more
222" logical, but not Vi-compatible) 217" logical, but not Vi-compatible)
223map Y y$ 218map Y y$
@@ -343,7 +338,6 @@ let g:ale_pattern_options = {'\.wiki$': {'ale_enabled': 0}}
343"}}} 338"}}}
344 339
345"{{{ Ledger 340"{{{ Ledger
346" let g:ledger_extra_options = '--pedantic --explicit --check-payees'
347let g:ledger_maxwidth = 48 341let g:ledger_maxwidth = 48
348let g:ledger_fillstring = ' ~' 342let g:ledger_fillstring = ' ~'
349"}}} 343"}}}
@@ -409,3 +403,11 @@ let g:gutentags_generate_on_missing = 1
409let g:gutentags_generate_on_write = 1 403let g:gutentags_generate_on_write = 1
410let g:gutentags_generate_on_empty_buffer = 0 404let g:gutentags_generate_on_empty_buffer = 0
411" }}} 405" }}}
406
407" vim-slime {{{
408let g:slime_target = "tmux"
409let g:slime_paste_file = "$HOME/.slime_paste"
410let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"}
411let g:slime_no_mappings = 1
412nmap <c-CR> <Plug>SlimeParagraphSend
413" }}} Slime