avoid using q! for quitting vim

This commit is contained in:
siduck76 2021-08-26 16:28:21 +05:30 committed by GitHub
parent 8f733755e8
commit 8a21e73cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@ if not present then
end end
vim.cmd [[ vim.cmd [[
function MyFunc(a,b,c,d) function Quitvim(a,b,c,d)
q! q
endfunction endfunction
]] ]]
@ -34,7 +34,7 @@ bufferline.setup {
custom_areas = { custom_areas = {
right = function() right = function()
local result = {} local result = {}
table.insert(result, { text = "%@MyFunc@  %X", guifg = colors.red, guibg = colors.black }) table.insert(result, { text = "%@Quitvim@  %X", guifg = colors.red, guibg = colors.black })
return result return result
end, end,
}, },