aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-11-10 10:52:15 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-11-10 11:00:25 +0100
commitbd513af81834f03de26347e3d1b37b42be5fefdc (patch)
treea9c541ce55a9aa438d8bcc9dd603d9273078363e
parent5aaf09eb8f7a007dbd2ddeb31dafc106491d5c0a (diff)
Update some vim defaults
-rw-r--r--.vim/ftplugin/markdown.vim4
-rw-r--r--.vim/functions/set-char-limit.vim9
-rw-r--r--.vim/vimrc3
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
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