summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2020-06-05 17:13:52 +0300
committerYigit Sever2020-06-05 17:13:52 +0300
commit435507b6c8d1873fc97066c9ed7440507774fb3a (patch)
treeef561ba89b4252b47e0d16875421f3cff99b6065
parent882cdd49b153ef381b3b8ccd8a18e457954fbbde (diff)
downloaddotfiles-435507b6c8d1873fc97066c9ed7440507774fb3a.tar.gz
dotfiles-435507b6c8d1873fc97066c9ed7440507774fb3a.tar.bz2
dotfiles-435507b6c8d1873fc97066c9ed7440507774fb3a.zip
nvim settings
-rwxr-xr-x.config/nvim/init.vim24
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
195let g:clipboard = { 195let 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
280tnoremap <Esc> <C-\><C-n>
281
282" move between windows in :term
283tnoremap <C-h> <C-\><C-n><C-w>h
284tnoremap <C-j> <C-\><C-n><C-w>j
285tnoremap <C-k> <C-\><C-n><C-w>k
286tnoremap <C-l> <C-\><C-n><C-w>l
287
279" call CreatePaper on word below cursor 288" call CreatePaper on word below cursor
280nnoremap <leader>cp :call CreatePaper(expand('<cword>'))<CR> 289nnoremap <leader>np gewi[[/papers/<ESC>Ea]]<ESC>bb:call CreatePaper(expand('<cword>'))<CR>
290
291" call CreateReference on word below cursor
292nnoremap <leader>nr :call CreateReference(expand('<cword>'))<CR>
293
294" create a new note
295nnoremap <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
447let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki', 462let 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',