aboutsummaryrefslogtreecommitdiff
path: root/.vim/functions/set-char-limit.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/functions/set-char-limit.vim')
-rw-r--r--.vim/functions/set-char-limit.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/.vim/functions/set-char-limit.vim b/.vim/functions/set-char-limit.vim
new file mode 100644
index 0000000..9269059
--- /dev/null
+++ b/.vim/functions/set-char-limit.vim
@@ -0,0 +1,9 @@
+" 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