diff --git a/install.sh b/install.sh index 5f9aaa4..e9882cf 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..cffab05 --- /dev/null +++ b/vim/vimrc @@ -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 +