2015-03-26 17:09:26 +00:00
|
|
|
"Allows filetype detection
|
|
|
|
filetype on
|
|
|
|
filetype plugin indent on
|
|
|
|
|
|
|
|
" Set backup dirs
|
|
|
|
set backup
|
2015-11-07 06:52:08 +00:00
|
|
|
if has('nvim')
|
|
|
|
set backupdir=~/.config/nvim/backup
|
|
|
|
set directory=~/.config/nvim/tmp
|
|
|
|
set viminfo='100,n~/.config/nvim/tmp/viminfo.nvim
|
|
|
|
else
|
|
|
|
set backupdir=~/.vim/backup
|
|
|
|
set directory=~/.vim/tmp
|
|
|
|
set viminfo='100,n~/.vim/tmp/viminfo.vim
|
|
|
|
endif
|
2015-03-26 17:09:26 +00:00
|
|
|
|
2019-10-16 16:49:04 +00:00
|
|
|
" TODO: Should this go somewhere else?
|
2015-03-26 17:09:26 +00:00
|
|
|
" Filetype extension
|
|
|
|
au BufRead,BufNewFile *.md set syntax=markdown
|
2019-10-21 23:26:35 +00:00
|
|
|
|
|
|
|
" Default to running vim like it's an IDE. To disable on a more restricted
|
|
|
|
" machine, override this to 0 using an init.local.rc.vim
|
|
|
|
let g:vim_as_an_ide = 1
|