added vimwiki binds!

main
Simon Kellet 3 years ago
parent c8af73fda1
commit 68ead0231e
  1. 19
      nvim/generate-vimwiki-diary-template
  2. 44
      nvim/init.vim
  3. 16
      nvim/spell/en.utf-8.add
  4. BIN
      nvim/spell/en.utf-8.add.spl

@ -0,0 +1,19 @@
#!/usr/bin/python
import sys
import datetime
template = """# {date}
## Daily checklist
* [ ]
* [ ]
## Todo
## Notes"""
date = (datetime.date.today() if len(sys.argv) < 2
# Expecting filename in YYYY-MM-DD.foo format
else sys.argv[1].rsplit(".", 1)[0])
print(template.format(date=date))

@ -26,7 +26,8 @@ Plug 'rust-lang/rust.vim'
Plug 'lervag/vimtex'
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
Plug 'nanotee/zoxide.vim'
Plug 'vimwiki/vimwiki'
Plug 'mattn/calendar-vim'
call plug#end()
let g:molokai_original = 1
@ -40,22 +41,45 @@ set tabstop=4
set expandtab
set number relativenumber
colorscheme monokai
set nocompatible
let g:livepreview_previewer = 'zathura'
let mapleader = ","
let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'syntax': 'markdown', 'ext': '.md'}]
:map <F11> :setlocal spell! spelllang=en_gb<CR>
let NERDTreeMapOpenInTab='<ENTER>'
au BufNewFile ~/vimwiki/diary/*.md :silent 0r !~/.config/nvim/generate-vimwiki-diary-template '%'
autocmd FileType java setlocal omnifunc=javacomplete#Complete
nmap <F4> <Plug>(JavaComplete-Imports-AddSmart)
imap <F4> <Plug>(JavaComplete-Imports-AddSmart)
nmap <F5> <Plug>(JavaComplete-Imports-Add)
imap <F5> <Plug>(JavaComplete-Imports-Add)
nmap <F6> <Plug>(JavaComplete-Imports-AddMissing)
imap <F6> <Plug>(JavaComplete-Imports-AddMissing)
nmap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)
imap <F7> <Plug>(JavaComplete-Imports-RemoveUnused)

@ -7,3 +7,19 @@ Garstang
PR3
EF
th
StaffId
Cname
C1
P1
UAE
StaffID
Nextcloud
md
markdownguide
www
Vimwiki
neovim
init
vimwiki
PlugInstall
mapleader

Binary file not shown.
Loading…
Cancel
Save