diff options
-rw-r--r-- | .vim/ftplugin/markdown.vim | 4 | ||||
-rw-r--r-- | .vim/functions/set-char-limit.vim | 9 | ||||
-rw-r--r-- | .vim/vimrc | 3 |
3 files changed, 4 insertions, 12 deletions
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 @@ -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 |