diff options
| -rwxr-xr-x | .config/nvim/init.vim | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 9841ff7..497043b 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim | |||
| @@ -189,7 +189,7 @@ endfunction | |||
| 189 | 189 | ||
| 190 | " }}} Function " | 190 | " }}} Function " |
| 191 | 191 | ||
| 192 | "{{{Misc Settings | 192 | "{{{Settings |
| 193 | 193 | ||
| 194 | " fix the Target STRING not available | 194 | " fix the Target STRING not available |
| 195 | let g:clipboard = { | 195 | let g:clipboard = { |
| @@ -276,8 +276,23 @@ let g:moonflyUndercurls = 0 | |||
| 276 | 276 | ||
| 277 | "{{{ Mappings | 277 | "{{{ Mappings |
| 278 | 278 | ||
| 279 | " use esc in :term as well | ||
| 280 | tnoremap <Esc> <C-\><C-n> | ||
| 281 | |||
| 282 | " move between windows in :term | ||
| 283 | tnoremap <C-h> <C-\><C-n><C-w>h | ||
| 284 | tnoremap <C-j> <C-\><C-n><C-w>j | ||
| 285 | tnoremap <C-k> <C-\><C-n><C-w>k | ||
| 286 | tnoremap <C-l> <C-\><C-n><C-w>l | ||
| 287 | |||
| 279 | " call CreatePaper on word below cursor | 288 | " call CreatePaper on word below cursor |
| 280 | nnoremap <leader>cp :call CreatePaper(expand('<cword>'))<CR> | 289 | nnoremap <leader>np gewi[[/papers/<ESC>Ea]]<ESC>bb:call CreatePaper(expand('<cword>'))<CR> |
| 290 | |||
| 291 | " call CreateReference on word below cursor | ||
| 292 | nnoremap <leader>nr :call CreateReference(expand('<cword>'))<CR> | ||
| 293 | |||
| 294 | " create a new note | ||
| 295 | nnoremap <leader>nn :call CreateNote()<CR> | ||
| 281 | 296 | ||
| 282 | " If you like "Y" to work from the cursor to the end of line (which is more | 297 | " If you like "Y" to work from the cursor to the end of line (which is more |
| 283 | " logical, but not Vi-compatible) | 298 | " logical, but not Vi-compatible) |
| @@ -446,7 +461,10 @@ let g:startify_custom_header = | |||
| 446 | "{{{ vimwiki | 461 | "{{{ vimwiki |
| 447 | let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki', | 462 | let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki', |
| 448 | \ 'path_html': '/home/yigit/Nextcloud/personal_wiki_html', | 463 | \ 'path_html': '/home/yigit/Nextcloud/personal_wiki_html', |
| 449 | \ 'css_name': 'tufte.css', | 464 | \ 'auto_diary_index': 1, |
| 465 | \ 'auto_generate_links': 1, | ||
| 466 | \ 'auto_generate_tags': 1, | ||
| 467 | \ 'automatic_nested_syntaxes': 1, | ||
| 450 | \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/', | 468 | \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/', |
| 451 | \ 'template_default': 'default_template', | 469 | \ 'template_default': 'default_template', |
| 452 | \ 'template_ext': '.html', | 470 | \ 'template_ext': '.html', |
