From 39cd28594a3419a985e26384577c0e5341677d0e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 2 Jan 2022 09:42:51 -0600 Subject: Add vimrc I've added a basic vimrc for when I use it occasionally --- vim/vimrc | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 vim/vimrc (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..c06bdac --- /dev/null +++ b/vim/vimrc @@ -0,0 +1,54 @@ +" vimrc +" see https://github.com/liuchengxu/vim-better-default/ + +set autowrite +set backupdir=/tmp//,. +set directory=/tmp//,. +set expandtab +set fileformats=unix,dos,mac +set fillchars=stl:\ ,stlnc:\ ,fold:\ ,vert:│ +set hidden +set ignorecase +set linespace=0 +set matchtime=5 +set mousehide +set nobackup +set noswapfile +set nowrap +set nowritebackup +set number +set pumheight=20 +set report=0 +set ruler +set scrolljump=5 +set scrolloff=3 +set shiftwidth=4 +set shortmess=atOI +set showcmd +set showmatch +set showmode +set smartcase +set softtabstop=4 +set splitbelow +set splitright +set tabstop=4 +set whichwrap+=<,>,h,l +set wildignore+=*/tmp/*,*.o,*.obj,*.so +set wildignore+=*\\tmp\\*,*.exe +set wildignore+=*swp,*.class,*.pyc,*.png,*.jpg,*.gif,*.zip +set wildmode=list:longest,full +set winminheight=0 + +if v:version >= 703 +set undodir=/tmp//,. +endif +if has('unnamedplus') +set clipboard=unnamedplus,unnamed +else +set clipboard+=unnamed +endif +if has('persistent_undo') +set undofile +set undolevels=1000 +set undoreload=10000 +endif \ No newline at end of file -- cgit 1.4.1-21-gabe81