diff options
author | Yigit Sever | 2020-05-15 22:56:01 +0300 |
---|---|---|
committer | Yigit Sever | 2020-05-15 22:56:01 +0300 |
commit | eaa1df2b0c717bf6ef8312e092d7fe9853328d25 (patch) | |
tree | a0c28e96c51b0745eb6c0a7475bceea298cffd5e /.config/nvim | |
parent | 68de9265655f6a6a92c12aa9a948b9dbef311c08 (diff) | |
download | dotfiles-eaa1df2b0c717bf6ef8312e092d7fe9853328d25.tar.gz dotfiles-eaa1df2b0c717bf6ef8312e092d7fe9853328d25.tar.bz2 dotfiles-eaa1df2b0c717bf6ef8312e092d7fe9853328d25.zip |
init.vim cleanup, createpaper mapping
Diffstat (limited to '.config/nvim')
-rwxr-xr-x | .config/nvim/init.vim | 20 |
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 | |||
139 | endfunction | 138 | endfunction |
140 | " }}} Function " | 139 | " }}} Function " |
141 | 140 | ||
142 | "{{{Misc Settings | 141 | "{{{Misc Settings |
143 | 142 | ||
144 | let g:slime_target = "tmux" | ||
145 | let g:slime_paste_file = "$HOME/.slime_paste" | ||
146 | let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"} | ||
147 | let g:slime_no_mappings = 1 | ||
148 | nmap <c-\> <Plug>SlimeParagraphSend | ||
149 | |||
150 | " Use deoplete. | 143 | " Use deoplete. |
151 | let g:deoplete#enable_at_startup = 1 | 144 | let g:deoplete#enable_at_startup = 1 |
152 | 145 | ||
@@ -213,11 +206,13 @@ set diffopt=algorithm:patience | |||
213 | set termguicolors | 206 | set termguicolors |
214 | colorscheme moonfly | 207 | colorscheme moonfly |
215 | let g:moonflyUndercurls = 0 | 208 | let g:moonflyUndercurls = 0 |
216 | |||
217 | " }}} | 209 | " }}} |
218 | 210 | ||
219 | "{{{ Mappings | 211 | "{{{ Mappings |
220 | 212 | ||
213 | " call CreatePaper on word below cursor | ||
214 | nnoremap <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) |
223 | map Y y$ | 218 | map 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' | ||
347 | let g:ledger_maxwidth = 48 | 341 | let g:ledger_maxwidth = 48 |
348 | let g:ledger_fillstring = ' ~' | 342 | let g:ledger_fillstring = ' ~' |
349 | "}}} | 343 | "}}} |
@@ -409,3 +403,11 @@ let g:gutentags_generate_on_missing = 1 | |||
409 | let g:gutentags_generate_on_write = 1 | 403 | let g:gutentags_generate_on_write = 1 |
410 | let g:gutentags_generate_on_empty_buffer = 0 | 404 | let g:gutentags_generate_on_empty_buffer = 0 |
411 | " }}} | 405 | " }}} |
406 | |||
407 | " vim-slime {{{ | ||
408 | let g:slime_target = "tmux" | ||
409 | let g:slime_paste_file = "$HOME/.slime_paste" | ||
410 | let g:slime_default_config = {"socket_name": get(split($TMUX, ","), 0), "target_pane": "{last}"} | ||
411 | let g:slime_no_mappings = 1 | ||
412 | nmap <c-CR> <Plug>SlimeParagraphSend | ||
413 | " }}} Slime | ||