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
vim.cmd [[
function MyFunc(a,b,c,d)
q!
function Quitvim(a,b,c,d)
q
endfunction
]]
@ -34,7 +34,7 @@ bufferline.setup {
custom_areas = {
right = function()
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
end,
},