Skip to content

Commit

Permalink
add basic vimrc and warning that workstations have little vim configu…
Browse files Browse the repository at this point in the history
…ration (#56)
  • Loading branch information
sethboyles authored Jan 30, 2024
1 parent 92449ab commit 0d8d72f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions set-up-new-machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ if [ ! -L ~/.config/nvim/init.vim ]; then
ln -s ~/workspace/capi-workspace/init.vim ~/.config/nvim/init.vim
fi

# link basic .vimrc
if [ ! -L ~/.vimrc ]; then
ln -s ~/workspace/capi-workspace/vimrc ~/.vimrc
f


# setup mysql
sudo service mysql start
sudo service mysql status # might need loop here depending how long status takes
Expand Down
22 changes: 22 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
autocmd VimEnter * echo "WARNING: This workstation is largely configured for neovim, but you are using vim. Consider using `nvim` instead of `vim`."
set title
set encoding=utf-8
set mouse=a
set number
set ofu=syntaxcomplete#Complete

" When auto-indenting, use the indenting format of the previous line
set copyindent
" When on, a <Tab> in front of a line inserts blanks according to 'shiftwidth'.
" 'tabstop' is used in other places. A <BS> will delete a 'shiftwidth' worth of
" space at the start of the line.
set smarttab
" Copy indent from current line when starting a new line (typing <CR> in Insert
" mode or when using the "o" or "O" command)
set autoindent
" Automatically inserts one extra level of indentation in some cases, and works
" for C-like files
set smartindent

set ruler

0 comments on commit 0d8d72f

Please sign in to comment.