33 lines
576 B
Lua
33 lines
576 B
Lua
return {
|
|
{
|
|
{ "TermOpen" },
|
|
pattern = "*",
|
|
command = "setlocal nonumber norelativenumber",
|
|
},
|
|
{
|
|
{ "InsertEnter" },
|
|
pattern = "*",
|
|
command = "set norelativenumber",
|
|
},
|
|
{
|
|
{ "InsertLeave" },
|
|
pattern = "*",
|
|
command = "set relativenumber",
|
|
},
|
|
{
|
|
{ "FileType" },
|
|
pattern = { "markdown", "tex" },
|
|
command = "set tw=80",
|
|
},
|
|
{
|
|
{ "CursorHold", "CursorHoldI" },
|
|
pattern = "*",
|
|
command = "checktime",
|
|
},
|
|
{
|
|
{ "BufRead", "CursorHoldI" },
|
|
pattern = "*.slint",
|
|
command = "set filetype=slint",
|
|
},
|
|
}
|