From 44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 14 Jan 2017 22:02:34 +0100 Subject: Replace `vimwiki` with custom solution based on selected plugins and `rofi` --- vim/.vimrc | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 67ea86e..fba4a40 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -7,7 +7,8 @@ " * vim-unimpaired -- bracket mappings " * vim-gitgutter -- display git diffs alongside line numbers " * vim-renamer -- file renaming utility -" * vim-vimwiki -- makes it easier to manage e.g. notes +" * vim-pandoc -- `pandoc` integration +" * vim-pandoc-syntax -- `pandoc` syntax module " * goyo.vim -- undistracted writing mode " * vim-matlab-behave -- add basic matlab support @@ -54,14 +55,16 @@ nmap :e# autocmd InsertEnter * :setlocal nohlsearch autocmd InsertLeave * :setlocal hlsearch + " redraw wiki instance when managed via e.g. _i3wm scratch buffer_ autocmd FocusGained *.wiki :redraw! +autocmd BufRead,BufNewFile *.wiki set filetype=pandoc autocmd FileType scheme setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType lisp setlocal shiftwidth=2 tabstop=2 expandtab autocmd FileType racket setlocal shiftwidth=2 tabstop=2 expandtab -autocmd FileType vimwiki setlocal noswapfile nonumber foldcolumn=1 autoread -autocmd FileType vimwiki let g:airline#extensions#whitespace#checks=['indent', 'trailing', 'long'] +autocmd FileType pandoc setlocal nonumber autoread +autocmd FileType pandoc let g:airline#extensions#whitespace#checks=['indent', 'trailing', 'long'] vnoremap cc "+y nnoremap cc "+p @@ -102,13 +105,6 @@ let g:airline#extensions#tabline#show_splits = 0 let g:airline#extensions#tabline#show_tab_nr = 0 let g:airline#extensions#whitespace#mixed_indent_algo = 2 -let g:vimwiki_list = [{ - \ 'path': '~/note/', - \ 'path_html': '~/share/note/', - \ 'template_path': '~/share/note/assets/', - \ 'template_default': 'default', - \ 'template_ext': '.tpl' }] - let g:gitgutter_enabled = 0 let g:gitgutter_highlight_lines = 1 let g:goyo_width = 90 @@ -116,12 +112,11 @@ let g:goyo_margin_top = 1 let g:goyo_margin_bottom = 0 let g:matlab_behave_paste_cmd = "alt+v" +let g:pandoc#modules#disabled = ["folding","spell"] +let g:pandoc#syntax#conceal#blacklist = ["image","atx"] + nnoremap :NERDTreeToggle nnoremap :MundoToggle nnoremap :GitGutterToggle nnoremap :set cursorline! nnoremap :Goyo - -map t :VimwikiToggleListItem -nmap wtl VimwikiTableMoveColumnLeft -nmap wtr VimwikiTableMoveColumnRight -- cgit v1.2.3