From 7f6bd7a76d6f0dc4c7f9c9d7b6e7d6f6f2292db0 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 30 Apr 2019 23:00:17 -0400 Subject: [PATCH] vim: small changes (see log) 1. Bump history to 10k not 1k 2. Detect ctags in .vimtags files (Windows cannot handle TAGS and tags) 3. man pages should wrap at line breaks 4. When writing perlpod, hard wrap at 80 --- vim/ftplugin/man.vim | 3 +++ vim/ftplugin/pod.vim | 1 + vim/vimrc | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 vim/ftplugin/man.vim create mode 100644 vim/ftplugin/pod.vim diff --git a/vim/ftplugin/man.vim b/vim/ftplugin/man.vim new file mode 100644 index 0000000..216d024 --- /dev/null +++ b/vim/ftplugin/man.vim @@ -0,0 +1,3 @@ +" break lines at word boundaries +setlocal wrap +setlocal linebreak diff --git a/vim/ftplugin/pod.vim b/vim/ftplugin/pod.vim new file mode 100644 index 0000000..1e3cd9b --- /dev/null +++ b/vim/ftplugin/pod.vim @@ -0,0 +1 @@ +setlocal textwidth=80 diff --git a/vim/vimrc b/vim/vimrc index 631b4d4..b539ee6 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -38,9 +38,10 @@ set ttimeoutlen=30 " Low keycode timeout to avoid delay " Other set modelines=0 " Disable modelines for security set encoding=utf-8 " Encoding -set history=1000 " Remember last 1000 :commands +set history=10000 " Remember last 1000 :commands set scrolloff=5 " Scroll at 5 rows from top/bot of screen filetype plugin indent on " Enable filetype specific plugins/indent +set tags+=./.vimtags,.vimtags " Look in .vimtags files for ctags " Persistent undo if has('persistent_undo') && isdirectory(s:vimdir . '/undo') -- libgit2 0.28.4