add vimrc
This commit is contained in:
parent
3c49021103
commit
08da3fc2bf
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
[ ! -d "$HOME/.vim/" ] && mkdir "$HOME/.vim"
|
||||||
|
|
||||||
cp bash/bashrc ~/.bashrc
|
cp bash/bashrc ~/.bashrc
|
||||||
cp bash/bash_profile ~/.bash_profile
|
cp bash/bash_profile ~/.bash_profile
|
||||||
cp tmux/tmux.conf ~/.tmux.conf
|
cp tmux/tmux.conf ~/.tmux.conf
|
||||||
cp git/gitconfig ~/.gitconfig
|
cp git/gitconfig ~/.gitconfig
|
||||||
|
cp vim/vimrc ~/.vim/vimrc
|
||||||
|
|||||||
40
vim/vimrc
Normal file
40
vim/vimrc
Normal 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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user