lib/soywiki.vim in soywiki-0.7.7 vs lib/soywiki.vim in soywiki-0.7.8
- old
+ new
@@ -628,10 +628,11 @@
" this checks if the buffer is a SoyWiki file (from firstline)
" and then turns on syntax coloring and mappings as necessary
func! s:prep_buffer()
if (s:is_wiki_page() && !exists("b:mappings_loaded"))
- set textwidth=72
+ " let user decide on the textwidth
+ set filetype=txt
nnoremap <buffer> <cr> :call <SID>follow_link_under_cursor(0)<cr>
nnoremap <buffer> <c-l> :call <SID>follow_link_under_cursor(2)<cr>
nnoremap <buffer> <c-h> :call <SID>follow_link_under_cursor(1)<cr>
noremap <buffer> <leader>f :call <SID>fuzzy_follow_link(0)<CR>
noremap <buffer> <c-j> :call <SID>find_next_wiki_link(0)<CR>