dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ce40810693f818b83d404a4a8e1fae3315db1880
parent 4e148cabfd191978d5efd06f3e07aea44578ecb0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 18 Oct 2018 10:48:42 +0200

Create 'vi' configuration which loads everything except plugins

Diffstat:
Mlinks/.commands.sh | 2+-
Alinks/.vim/colors/tender.vim | 2++
Alinks/.vim/plugin/00-general.vim | 39+++++++++++++++++++++++++++++++++++++++
Alinks/.vim/vimrc.noplugs | 8++++++++
4 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/links/.commands.sh b/links/.commands.sh @@ -61,7 +61,7 @@ eg() { # see :h --noplugin #alias vi='vim -u NONE' -alias vi='vim --noplugin' +alias vi='vim -u ~/.vim/vimrc.noplugs' alias todo="vim ~/iawriter/todo.md" diff --git a/links/.vim/colors/tender.vim b/links/.vim/colors/tender.vim @@ -0,0 +1 @@ +../vim-plugs/tender/colors/tender.vim+ \ No newline at end of file diff --git a/links/.vim/plugin/00-general.vim b/links/.vim/plugin/00-general.vim @@ -0,0 +1,39 @@ +set autoread " reload files when changed on disk +set backspace=2 " fix broken backspace in some setups +set backupcopy=yes " see :help crontab +set clipboard=unnamed " use system clipboard +set dictionary+=/usr/share/dict/words " word completion using Ctrl-x Ctrl-k +set expandtab " use the appropriate number of spaces for <Tab> +set hlsearch " highlight search matches +set ignorecase " case-insensitive search +set incsearch " search as you type +set laststatus=2 " always show the statusline +set lbr " break lines between words +set list " enable rendering of invisible characters +set listchars=tab:▸\ ,eol:¬ " Use symbols for tab and end-of-line +set nojoinspaces " disable double spaces after periods +set pastetoggle=<F2> " toggle paste mode +set scrolloff=3 " show context above-below cursorline +set shiftwidth=4 " width for autoindents +set smartcase " case-sensitive search if any caps +set splitright " new vertical splits on the right side +set tabstop=4 " number of spaces for tab +set textwidth=80 " default line width in number of characters +set wildmenu " show a navigable menu for tab completion +set wildmode=longest,list,full + +" specify mutt aliases path, autocomplete aliases with @@ in insert mode +let g:mutt_aliases_file = '~/.mutt/aliases' + +" split size for :Lex[plore] and :Hex[plore]. Percentage when positive, line/col +" number when negative +let g:netrw_winsize = 20 + +" use faster :grep alternatives when available +if executable("rg") + set grepprg=rg\ --vimgrep\ --no-heading + set grepformat=%f:%l:%c:%m,%f:%l:%m +elseif executable("ag") + set grepprg=ag\ --nogroup\ --nocolor\ --ignore-case\ --column + set grepformat=%f:%l:%c:%m,%f:%l:%m +endif diff --git a/links/.vim/vimrc.noplugs b/links/.vim/vimrc.noplugs @@ -0,0 +1,8 @@ +" temporarily fix deprecation warning +if has('python3') + silent! python3 1 +endif + +set nocompatible +filetype plugin indent on +syntax enable