[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 6f51143 6/6: Improve vim configuration

From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6f51143 6/6: Improve vim configuration
Date: Tue, 6 Mar 2018 07:02:46 -0500 (EST)

branch: master
commit 6f5114328cb232160c55c2e823cf4695d380df5a
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve vim configuration
 README.schroot | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/README.schroot b/README.schroot
index e67bd2f..b1ed6e9 100644
--- a/README.schroot
+++ b/README.schroot
@@ -205,6 +205,43 @@ patch --dry-run --strip=0 </home/greg/ltmain.sh.patch \
 # Configure vim.
+# Without this, 'zg' gives an error message; with it, vim creates a
+# spellfile the first time 'zg' is used, if none already exists.
+mkdir ~/.vim
+# It's a much better idea to copy a mature spellfile hither:
+# ~/.vim/spell/en.utf-8.add
+# and then (imperatively) run this command:
+# :mkspell! ~/.vim/spell/en.utf-8.add
+cat >~/.vimrc <<\EOF
+" This shouldn't be necessary, but it is: $LANG is 'en_US.UTF-8',
+" yet vim uses Latin-1 nevertheless.
+set encoding=utf-8
+set background=dark
+highlight clear SpellBad
+highlight SpellBad   cterm=underline ctermbg=240 ctermfg=226
+highlight clear SpellCap
+highlight SpellCap   cterm=underline ctermbg=240 ctermfg=252
+highlight clear SpellLocal
+highlight SpellLocal cterm=underline ctermbg=240 ctermfg=154
+highlight clear SpellRare
+highlight SpellRare  cterm=underline ctermbg=240 ctermfg=208
+highlight TabLineFill                            ctermfg=16
+highlight TabLine                    ctermbg=237 ctermfg=124
+highlight TabLineSel                 ctermbg=239 ctermfg=202
+" From tpope's 'sensible.vim':
+set tabpagemax=50
+let g:netrw_liststyle=3
+map <Tab> <C-W>w
+" Prevent gvim cursor from blinking
+:set guicursor+=a:blinkon0
 cat >/etc/vim/vimrc.local <<\EOF
 set shortmess=Il

reply via email to

[Prev in Thread] Current Thread [Next in Thread]