diff --git a/text-editor/neovim/init.vim b/text-editor/neovim/init.vim index f4000a8..0b1fe65 100644 --- a/text-editor/neovim/init.vim +++ b/text-editor/neovim/init.vim @@ -367,7 +367,7 @@ augroup END " jump to last opened position in file except in git commits let jump_to_pos_blacklist = ['gitcommit'] if has("autocmd") - au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") && index(blacklist, &ft) | exe "normal! g'\"" | endif + au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") && index(jump_to_pos_blacklist, &ft) | exe "normal! g'\"" | endif endif " no empty buffer on startup