From 7e0ef823d72b2b0c8d9505901461807b0f937b6a Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Sat, 9 Jul 2016 18:13:33 -0700 Subject: [PATCH] Improve vim config for python and markdown --- dotfiles/config/nvim/init.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index 6a326a6..9269fbd 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -1,7 +1,5 @@ set fileencoding=utf-8 -filetype off - if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim @@ -125,6 +123,9 @@ autocmd BufWritePre * :%s/\s\+$//e autocmd FileType rust setlocal shiftwidth=2 tabstop=2 autocmd BufRead,BufNewFile *.rs set filetype=rust +" Set column width to 80 only on python files +autocmd BufNewFile,BufRead *.py setlocal colorcolumn=80 + " Disable the rust style guide recommended 4 space indentation let g:rust_recommended_style=0 @@ -185,6 +186,9 @@ let g:pymode_doc_key = 'K' " Disable auto python-mode autocomplete documentation window set completeopt=menu +" Disable markdown automatic section folding +let g:vim_markdown_folding_disabled = 1 + " Merlin for OCaml let g:opamshare = substitute(system('opam config var share'),'\n$','','''') execute "set rtp+=" . g:opamshare . "/merlin/vim"