vim.opt.formatoptions:remove("t")
vim.opt.path:append("**")
vim.g.netrw_banner = 0
vim.opt.wildignore = '*.o,*~,*.pyc,*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store'
vim.opt.smartcase = true
vim.opt.showmatch = true
vim.opt.swapfile = false
vim.opt.smartindent = true
vim.opt.mouse = ""

-- Default to the "modern normal"
vim.opt.expandtab   = true
vim.opt.shiftwidth  = 4
vim.opt.tabstop     = 4
vim.opt.softtabstop = 4

-- Disable highlight when <leader><cr> is pressed
vim.api.nvim_set_keymap('n', '<leader><cr>', ':noh<cr>', { noremap = true, silent = true })

-- Return to last edit position when opening files
vim.cmd [[
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
]]

-- Colorscheme
vim.opt.background = "light"
m4_ifelse(DT_DOTFILES_TYPE, `remote', `m4_dnl
vim.opt.termguicolors = true
')m4_dnl
vim.cmd.colorscheme("bw")
