lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 8d8521f 4/4: Bring personal configuration und


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8d8521f 4/4: Bring personal configuration under version control
Date: Wed, 20 Mar 2019 12:06:44 -0400 (EDT)

branch: master
commit 8d8521fee53e513d4bc56a5cbaeae43524ab3ac0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Bring personal configuration under version control
---
 gwc/.vimrc | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 gwc/.zshrc | 50 +++++++++++++++++++++++++++++++++
 2 files changed, 144 insertions(+)

diff --git a/gwc/.vimrc b/gwc/.vimrc
new file mode 100644
index 0000000..d768f3c
--- /dev/null
+++ b/gwc/.vimrc
@@ -0,0 +1,94 @@
+" This shouldn't be necessary, but it is: $LANG is 'en_US.UTF-8',
+" yet vim uses Latin-1 nevertheless without this line:
+set encoding=utf-8
+
+set shortmess=Il
+
+noremap <S-Up> <C-Y>
+noremap <S-Down> <C-E>
+
+inoremap <S-Up>   <C-X><C-Y>
+inoremap <S-Down> <C-X><C-E>
+
+" Counterpart to J--on second thought, not such a good idea
+" nnoremap K i<Enter><Esc>
+
+" Tab key means ASCII HT (in insert mode)
+inoremap <Tab> <C-V><Tab>
+
+" Make 'n' search forward even if the last search was backward;
+" similarly, make 'N' always search backward.
+nnoremap <expr> n 'Nn'[v:searchforward]
+nnoremap <expr> N 'nN'[v:searchforward]
+
+set shiftwidth=4
+set expandtab
+
+" Not very helpful--use 'scrolloff' instead
+" set cursorline
+
+" Always show at least one line above or below the cursor
+set scrolloff=1
+
+set cindent
+set cinoptions=t0\ g0\ {s\ (0\ U1 comments^=:///
+
+au BufReadPost,BufNewFile *.tpp set ft=cpp
+au BufReadPost,BufNewFile *.xpp set ft=cpp
+" au BufReadPost,BufNewFile *.?pp set ft=cpp
+
+" mustache--"ignored" is preferable to default:
+"   https://lists.gnu.org/archive/html/lmi/2017-10/msg00016.html
+" for a plugin, see:
+"   https://lists.gnu.org/archive/html/lmi/2017-10/msg00017.html
+au BufReadPost,BufNewFile *.mst set ft=ignored
+
+syntax on
+set hlsearch
+
+set spell spelllang=en_us
+
+set wildmode=longest,longest,list:longest,full
+
+set history=1000
+
+set virtualedit=all
+
+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
+
+" Always show tabline, even if there's only one tab:
+set showtabline=2
+
+" Show invisibles: 'eol' and 'tab' are meant to be unobtrusive,
+" while 'nbsp' and 'trail' are meant to stand out; 'extends' and
+" 'precedes' normally wouldn't be seen because of 'set wrap'.
+set list
+" On second thought, 'eol' should probably be left alone.
+" set listchars=nbsp:◙,eol:☜,tab:☞☞,extends:»,precedes:«,trail:▒
+set listchars=nbsp:◙,tab:☞☞,extends:»,precedes:«,trail:▒
+highlight clear NonText
+highlight NonText    ctermfg=gray " eol, extends, precedes
+highlight clear SpecialKey
+highlight SpecialKey ctermfg=red  " nbsp, tab, trail
+
+let g:netrw_liststyle=3
+" What was the reason for this?
+" map <Tab> <C-W>w
+
+" Prevent gvim cursor from blinking
+:set guicursor+=a:blinkon0
diff --git a/gwc/.zshrc b/gwc/.zshrc
new file mode 100644
index 0000000..a87017f
--- /dev/null
+++ b/gwc/.zshrc
@@ -0,0 +1,50 @@
+# Personal configuration for cross-building in a chroot.
+
+export WINEPATH='Z:\\opt\\lmi\\local\\bin;Z:\\opt\\lmi\\local\\lib'
+export LMI_HOST=i686-w64-mingw32
+export PATH="/opt/lmi/local/bin:/opt/lmi/local/lib:$PATH"
+# At a regular user prompt, outside the chroot, do this:
+#   $ echo $DISPLAY
+# and replace :0.0 below with the string it returns:
+export DISPLAY=":0.0"
+
+export coefficiency='--jobs=32'
+
+# export TZ=UCT
+export LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8 LC_COLLATE=C.UTF-8
+# It is generally preferable to do this:
+# update-locale LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8 LC_COLLATE=C.UTF-8
+# but neither the chroot's nor the host's /etc/default/locale is
+# sourced by schroot, which strives to set as few environment
+# variables as possible.
+
+# This ought to be unnecessary because $LANG contains the string
+# "UTF-8"--see:
+#   https://lists.nongnu.org/archive/html/lmi/2018-03/msg00049.html
+# but it seems to be necessary nevertheless.
+export LESSCHARSET=utf-8
+
+# bindkey "\e[3~" delete-char      # Del
+# bindkey '\e[H' beginning-of-line # Home
+# bindkey '\e[F' end-of-line       # End
+bindkey "^[[1;5D" backward-word  # Ctrl-left
+bindkey "^[[1;5C" forward-word   # Ctrl-right
+bindkey '\e[1;3D' backward-word  # Alt-left
+bindkey '\e[1;3C' forward-word   # Alt-right
+# By default, zsh unfortunately binds ^S for this purpose;
+# use ^T instead, leaving ^S for flow control.
+bindkey '^T' history-incremental-search-forward
+
+prompt='%d[%?]%(!.#.$)'
+
+HISTSIZE=1000
+SAVEHIST=1000
+HISTFILE=~/.history
+setopt HIST_IGNORE_DUPS
+setopt HIST_IGNORE_SPACE
+
+autoload -U compinit
+compinit -u
+
+# This alias is explained in 'tabs/konsole_tabs'.
+alias asdf='. ./startup_script'



reply via email to

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