add vimrc

This commit is contained in:
James Dixon 2020-05-12 14:44:32 -04:00
parent 3c49021103
commit 08da3fc2bf
2 changed files with 43 additions and 0 deletions

View File

@ -1,6 +1,9 @@
#!/bin/bash
[ ! -d "$HOME/.vim/" ] && mkdir "$HOME/.vim"
cp bash/bashrc ~/.bashrc
cp bash/bash_profile ~/.bash_profile
cp tmux/tmux.conf ~/.tmux.conf
cp git/gitconfig ~/.gitconfig
cp vim/vimrc ~/.vim/vimrc

40
vim/vimrc Normal file
View File

@ -0,0 +1,40 @@
"
" minimal vimrc with no plugins
"
" ui
set number
set ruler
set wildmenu
set showcmd
set showmatch
" encoding/format
set encoding=utf-8
set fileformats=unix,dos,mac
" searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" indent
set shiftwidth=4
set tabstop=4
set softtabstop=4
set autoindent
" allow syntax and filetype plugins
syntax enable
filetype plugin indent on
runtime macros/matchit.vim
" key timeout values
set esckeys
set ttimeoutlen=20
set timeoutlen=1000
" filetypes
autocmd FileType markdown setlocal sw=4 ts=4 sts=4 expandtab