diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-07-03 16:11:32 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-07-03 16:11:32 +0800 |
commit | 31664bc6bd1f666f4ea6f9ae5b583bb8d18b69d2 (patch) | |
tree | 90e7685126b175376f8eecd153fe01653b4beb07 /vim/init/basic.vim | |
parent | 0bed649a238b300f7b960d52d161cbb0adc717af (diff) |
Update
Diffstat (limited to 'vim/init/basic.vim')
-rw-r--r-- | vim/init/basic.vim | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vim/init/basic.vim b/vim/init/basic.vim index b74f988..945c134 100644 --- a/vim/init/basic.vim +++ b/vim/init/basic.vim | |||
@@ -113,10 +113,6 @@ nnoremap gl :call ToggleQuit()<CR> | |||
113 | " Simply exit when closing the last buffer | 113 | " Simply exit when closing the last buffer |
114 | 114 | ||
115 | function! Bye() | 115 | function! Bye() |
116 | let specialFileTypes = ['help', 'netrw', 'vim-plug', 'nerdtree'] | ||
117 | let bufIsSpecial = index(specialFileTypes, &filetype) != -1 | ||
118 | let bufInMultipleWindow = len(getbufinfo(bufnr())[0].windows) > 1 | ||
119 | |||
120 | if len(getbufinfo({'buflisted': 1})) == 1 && len(getwininfo()) == 1 | 116 | if len(getbufinfo({'buflisted': 1})) == 1 && len(getwininfo()) == 1 |
121 | if g:quitVimWhenPressingCtrlC | 117 | if g:quitVimWhenPressingCtrlC |
122 | :silent! quit | 118 | :silent! quit |