Browse Source

.vimrc: `%% nowrap` for vimwiki pages

I tried something like this once before and it didn't work, but for
whatever reason it does now.
master
Brennen Bearnes 1 year ago
parent
commit
237365f47c
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      home/.vim/vimrc

+ 6
- 1
home/.vim/vimrc View File

@ -790,10 +790,15 @@ let mapleader = ","
" take some custom actions after reading a wiki page:
function! s:WikiBufReadPostOverrides()
" regenerate wiki pages with `%% exec-raw auto` on page load
" regenerate wiki pages with `%% exec-raw auto` on load
if search("%% exec-raw auto", "nw")
call <SID>RunFilter("filter-exec-raw")
endif
" turn off wrapping for wiki pages with `%% nowrap` on load
if search("%% nowrap", "nw")
set nowrap
endif
endfunction
" take some custom actions after writing a wiki page:


Loading…
Cancel
Save