Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
bbfe0149c3
commit
7aec0a3941
@ -33,7 +33,9 @@ let wiki.path = '~/git/notes/'
|
||||
let wiki.path_html = '~/vimwiki_html/'
|
||||
let wiki.syntax = 'default'
|
||||
let wiki.ext = '.wiki'
|
||||
let wiki.text_ignore_newline = 0
|
||||
let g:vimwiki_list = [wiki]
|
||||
let g:vimwiki_list_ignore_newline = 1
|
||||
let g:vimwiki_table_mappings = 0
|
||||
|
||||
" Status-line
|
||||
@ -132,7 +134,10 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
autocmd BufWritepre * %s/\n\+\%$//e
|
||||
|
||||
" Auto add notes git
|
||||
" Autoformating markdown
|
||||
autocmd BufWritePost *.md :Prettier
|
||||
"autocmd BufWritePost *.md execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw!
|
||||
au BufRead,BufNewFile *.md setlocal textwidth=80
|
||||
|
||||
" Auto add notes git
|
||||
au BufRead,BufNewFile *.wiki setlocal textwidth=80
|
||||
autocmd BufWritePost *.wiki execute '!git add % && git commit -m "Auto-commit: saved %" && git push' | redraw!
|
||||
|
Loading…
Reference in New Issue
Block a user