vim-settings/vim/rc/init.rc.vim

26 lines
601 B
VimL

" TODO: Should this go in the original init?
"Allows filetype detection
filetype on
filetype plugin indent on
" TODO: Myabe rename keymap and move this
" Enable mouse input
set mousehide
set mouse=a
" Set backup dirs
set backup
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
" TODO: Should this go somewhere else?
" Filetype extension
au BufRead,BufNewFile *.md set syntax=markdown