Add editor/vimlite (and update recipes/remote to use it)

This commit is contained in:
Henrik Lissner 2016-10-30 14:39:08 +01:00
parent d98649b4ff
commit 6256862b02
3 changed files with 94 additions and 1 deletions

77
editor/vimlite/.vimrc Normal file
View file

@ -0,0 +1,77 @@
set nocompatible
" Preferences {{{
syntax on
filetype indent plugin on
set laststatus=2 " Show statusbar
set nolist " Don't show whitespace chars (indentLine does it nicer)
set nospell " No spell check, please
set number " Line numbers
set visualbell " No sounds!
set showmatch " Show matching delimiters
set browsedir=buffer " Sets File>Open to start in current file's path
set showmode " Show mode in cmdline
set autoread " Auto-update a file that's been edited externally
set backspace=indent,eol,start
set mouse=a
set lazyredraw " Don't update screen while running macros
set hidden " Hide abandoned buffers
set nostartofline
set scrolloff=5
set shortmess+=filmnrxoOtTs
set ruler " Show line/col no in statusline
set showcmd " Show command issued
set textwidth=88
set fillchars=vert
set tags=./.tags;/,~/.tags,~/tags
set completeopt=longest,menu,preview
set wildmenu " Show menu instead of auto-complete
set wildmode=list:longest,full " command <Tab> completion: list
" matches -> longest common -> then
" all.
set wildignore+=*.cache,cache/**,*~,*.swp,*.log,.sass-cache
set wildignore+=*.class,*.o,*.pyc,*.obj,*DS_Store*
" Shell {{{
" 256bit terminals
set t_Co=256
set title
" }}}
" Search {{{
set incsearch " find as you type
set hlsearch " Highlight search terms
set ignorecase " case insensitive search
set smartcase " case sensitive when uc present
set gdefault " global flag for substitute by default
" }}}
" Formatting {{{
set autoindent
set shiftround
set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
" Wrapping
set nowrap
" Backspace and cursor keys to wrap
set whichwrap=b,s,h,l,<,>,[,]
set backspace=indent,eol,start " normal backspace behavior
" see :h fo-table
set formatoptions=qrn1lr
" }}}
" Keymaps {{{
let mapleader = ","
" }}}
" Navigation {{{
" netrw
let g:netrw_banner = 0
let g:netrw_keepdir = 0
let g:netrw_liststyle = 3
let g:netrw_sort_options = 'i'
" }}}
" }}}

16
editor/vimlite/install Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
case "$OSTYPE" in
darwin*)
brew install vim
;;
linux*)
if [[ -f /etc/arch-release ]]; then
sudo pacman --noconfirm -S vim
elif [[ -f /etc/debian_version ]]; then
sudo apt-get install -y vim
exit 1
fi
;;
esac

View file

@ -1,3 +1,3 @@
os/deb os/deb
shell/bash shell/bash
editor/vim editor/vimlite