[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 9c7870a 1/5: Install full vim package in chro
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 9c7870a 1/5: Install full vim package in chroot and configure it |
Date: |
Tue, 11 Apr 2017 19:59:22 -0400 (EDT) |
branch: master
commit 9c7870aa639a997a4157bc27735839465493c95f
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Install full vim package in chroot and configure it
---
README.schroot | 44 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/README.schroot b/README.schroot
index 285b2b2..2d44e60 100644
--- a/README.schroot
+++ b/README.schroot
@@ -101,7 +101,7 @@ mount -t proc -o rw,nosuid,nodev,noexec,relatime proc /proc
apt-get update
apt-get --assume-yes install g++-mingw-w64-i686 automake libtool make \
pkg-config git zsh bzip2 unzip sudo wine default-jre fop jing trang \
- vim-nox vim-doc \
+ vim vim-doc \
>cross-lmi-apt-get-log 2>&1
# This command should produce little output:
@@ -191,6 +191,48 @@ EOF
patch --dry-run --strip=0 </home/greg/ltmain.sh.patch \
&& patch --strip=0 </home/greg/ltmain.sh.patch
+# Configure vim.
+
+cat >/etc/vim/vimrc.local <<\EOF
+set shortmess=Il
+
+noremap <S-Up> <C-Y>
+noremap <S-Down> <C-E>
+
+" Counterpart to J
+nnoremap K i<Enter><Esc>
+
+" Tab key means ASCII HT (in insert mode)
+inoremap <Tab> <C-V><Tab>
+
+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
+
+syntax on
+set hlsearch
+
+set spell spelllang=en_us
+
+set wildmode=longest,longest,list:longest,full
+
+set history=1000
+
+set virtualedit=all
+EOF
+
# Exit from the root shell in the chroot.
exit