diff --git a/content/posts/how-to-configure-vim-for-writing/index.org b/content/posts/how-to-configure-vim-for-writing/index.org index fa5a9bd..d8bac1b 100644 --- a/content/posts/how-to-configure-vim-for-writing/index.org +++ b/content/posts/how-to-configure-vim-for-writing/index.org @@ -34,9 +34,9 @@ Most Vim configurations are done in the user's =~/.vimrc= file, which applies to Inside this file, add the following: -#+begin_example +#+begin_src vim setlocal linebreak -#+end_example +#+end_src We want to use =setlocal= (or its shorthand =setl=) over the usual =set= because this only sets =linebreak= on the current buffer. If we have multiple files open in Vim, we want to make sure that this setting only applies to open Markdown files.