From 1462465bc2830e20f4644870a99fc626719bfcdb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Simon=20D=C3=A9saulniers?= Date: Mon, 2 Feb 2015 03:06:23 -0500 Subject: [PATCH] prevent setting other buffers to nomodifiable --- ftplugin/mkd.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftplugin/mkd.vim b/ftplugin/mkd.vim index 312c2a4..63d7914 100644 --- a/ftplugin/mkd.vim +++ b/ftplugin/mkd.vim @@ -318,7 +318,7 @@ function! s:Markdown_Toc(...) else lopen endif - set modifiable + setlocal modifiable for i in range(1, line('$')) " this is the location-list data for the current item let d = getloclist(0)[i-1] @@ -338,8 +338,8 @@ function! s:Markdown_Toc(...) endif call setline(i, repeat(' ', l:level). d.text) endfor - set nomodified - set nomodifiable + setlocal nomodified + setlocal nomodifiable normal! gg endfunction -- 2.39.5