From bd513af81834f03de26347e3d1b37b42be5fefdc Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 10 Nov 2021 10:52:15 +0100 Subject: Update some vim defaults --- .vim/ftplugin/markdown.vim | 4 +++- .vim/functions/set-char-limit.vim | 9 --------- .vim/vimrc | 3 +-- 3 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 .vim/functions/set-char-limit.vim diff --git a/.vim/ftplugin/markdown.vim b/.vim/ftplugin/markdown.vim index b8df966..7558476 100644 --- a/.vim/ftplugin/markdown.vim +++ b/.vim/ftplugin/markdown.vim @@ -1,3 +1,5 @@ +set expandtab set shiftwidth=4 set tabstop=4 -set expandtab + +exe "set tw=" . split(&colorcolumn, ',')[0] diff --git a/.vim/functions/set-char-limit.vim b/.vim/functions/set-char-limit.vim deleted file mode 100644 index 9269059..0000000 --- a/.vim/functions/set-char-limit.vim +++ /dev/null @@ -1,9 +0,0 @@ -" SetCharLimit -" -" Set's character limit for a file. -" -" @param int chars The number of chars to put the limit on. -function SetCharLimit (chars) - exe "set cc=" . a:chars - exe "set tw=" . a:chars -endfunction diff --git a/.vim/vimrc b/.vim/vimrc index 5e44259..2ff5b86 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -10,6 +10,7 @@ runtime! plugins/*.vim " vim settings set ai +set cc=80,120 set cuc set cul set fdm=syntax @@ -19,7 +20,6 @@ set lz set nu set rnu set ru -"set scrolloff=666 set si set sm set ut=500 @@ -27,7 +27,6 @@ set wig=*.swp,*.bak,*.pyc,*.class,*.jar,*.gif,*.png,*.jpg,.precomp set wmnu call PickTheme('codedark') -call SetCharLimit(79) call SetIndent(8) " add hotkeys -- cgit v1.1