mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 04:30:27 +01:00
Compare commits
2 Commits
cf93d46371
...
6ff9e356c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ff9e356c3 | |||
| 443e7c3652 |
@@ -19,4 +19,11 @@ vim.opt.wrap = true -- Enable line wrap
|
||||
|
||||
vim.opt.spelllang = { "en", "nl" }
|
||||
|
||||
-- Enable autoread and set up checking triggers
|
||||
vim.o.autoread = true
|
||||
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {
|
||||
command = "if mode() != 'c' | checktime | endif",
|
||||
pattern = "*",
|
||||
})
|
||||
|
||||
-- Colorscheme is set in its plugin file
|
||||
|
||||
7
.vimrc
7
.vimrc
@@ -674,6 +674,13 @@ iab <expr> dayh strftime("== %Y%m%d %A ======")
|
||||
" Replace 'timeh' with a formatted date/time header
|
||||
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
|
||||
|
||||
iabbrev <expr> ,d strftime('%Y-%m-%d')
|
||||
iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')
|
||||
inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()
|
||||
" vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
|
||||
" vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
|
||||
" vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
|
||||
|
||||
" Fly through buffers instead of cycling
|
||||
" nnoremap <leader>l :ls<cr>:b<space>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user