diff --git a/editor/vimlite/.vimrc b/editor/vimlite/.vimrc new file mode 100644 index 00000000..9188747c --- /dev/null +++ b/editor/vimlite/.vimrc @@ -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 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' + " }}} +" }}} diff --git a/editor/vimlite/install b/editor/vimlite/install new file mode 100755 index 00000000..1898cf71 --- /dev/null +++ b/editor/vimlite/install @@ -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 + diff --git a/recipes/remote b/recipes/remote index 1f94b17b..4ae1afce 100644 --- a/recipes/remote +++ b/recipes/remote @@ -1,3 +1,3 @@ os/deb shell/bash -editor/vim +editor/vimlite