nvim: crontabs will now use the correct commentstring
This commit is contained in:
parent
a0cdccfa06
commit
42d95f9470
1 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,10 @@ vim.cmd 'nnoremap Q z='
|
|||
vim.cmd 'let g:markdown_fenced_languages = [ "bash=sh", "javascript", "cpp=cpp", "c++=cpp", "js=javascript", "json=javascript", "typescript", "ts=typescript", "php", "html", "css", "yml=yaml", "yaml" ]'
|
||||
|
||||
--- autocmd's ---
|
||||
-- Set comment strings
|
||||
vim.cmd 'autocmd FileType crontab set commentstring=#\\ %s'
|
||||
-- vim.cmd 'autocmd FileType rmd set commentstring=<!--\\ %s\\ -->'
|
||||
|
||||
-- Automatically jump to the last position in a file when opening
|
||||
vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue