2022-05-01 17:47:29 +00:00
|
|
|
-- AutoCMD:
|
2023-03-15 12:06:11 +00:00
|
|
|
-- vim.cmd([[
|
2022-05-01 17:47:29 +00:00
|
|
|
-- stuff
|
|
|
|
-- stuff
|
2023-03-15 12:06:11 +00:00
|
|
|
-- ]])
|
2022-05-01 17:47:29 +00:00
|
|
|
|
|
|
|
-- Open a file from its last left off position
|
2023-03-15 12:16:16 +00:00
|
|
|
vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]
|
2022-05-01 17:47:29 +00:00
|
|
|
|
|
|
|
-- uncomment this if you want to open nvim with a dir
|
2023-03-15 12:16:16 +00:00
|
|
|
vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]]
|
2022-05-01 17:47:29 +00:00
|
|
|
|
|
|
|
-- File extension specific tabbing
|
2023-03-15 12:16:16 +00:00
|
|
|
vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]]
|