From 435507b6c8d1873fc97066c9ed7440507774fb3a Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Fri, 5 Jun 2020 17:13:52 +0300
Subject: nvim settings

---
 .config/nvim/init.vim | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

(limited to '.config/nvim')

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
 
 " }}} Function "
 
-"{{{Misc Settings
+"{{{Settings
 
 " fix the Target STRING not available
 let g:clipboard = {
@@ -276,8 +276,23 @@ let g:moonflyUndercurls = 0
 
 "{{{ Mappings
 
+" use esc in :term as well
+tnoremap <Esc> <C-\><C-n>
+
+" move between windows in :term
+tnoremap <C-h> <C-\><C-n><C-w>h
+tnoremap <C-j> <C-\><C-n><C-w>j
+tnoremap <C-k> <C-\><C-n><C-w>k
+tnoremap <C-l> <C-\><C-n><C-w>l
+
 " call CreatePaper on word below cursor
-nnoremap <leader>cp :call CreatePaper(expand('<cword>'))<CR>
+nnoremap <leader>np gewi[[/papers/<ESC>Ea]]<ESC>bb:call CreatePaper(expand('<cword>'))<CR>
+
+" call CreateReference on word below cursor
+nnoremap <leader>nr :call CreateReference(expand('<cword>'))<CR>
+
+" create a new note
+nnoremap <leader>nn :call CreateNote()<CR>
 
 " If you like "Y" to work from the cursor to the end of line (which is more
 " logical, but not Vi-compatible)
@@ -446,7 +461,10 @@ let g:startify_custom_header =
 "{{{ vimwiki
 let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki',
             \ 'path_html': '/home/yigit/Nextcloud/personal_wiki_html',
-            \ 'css_name': 'tufte.css',
+            \ 'auto_diary_index': 1,
+            \ 'auto_generate_links': 1,
+            \ 'auto_generate_tags': 1,
+            \ 'automatic_nested_syntaxes': 1,
             \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/',
             \ 'template_default': 'default_template',
             \ 'template_ext': '.html',
-- 
cgit v1.2.3-70-g09d2