SORU
21 NİSAN 2009, Salı


Vim, nasıl bir dosyayı aynı hat numarasından açmak için son anda kapattım mı?

Vim devre dışı bıraktım aynı yerde bir dosya açmak istiyorum.

CEVAP
21 NİSAN 2009, Salı


Ubuntu /etc/vim/vimrc dosyası, bu örnek diye

" Uncomment the following to have Vim jump to the last position when                                                       
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
    \| exe "normal! g'\"" | endif
endif

Eğer bu işe yaramaz ise, yaygın bir sorun ~/.viminfo dosyası olan mülkiyet değil. Eğer durum buysa, o zaman çalıştırın:

sudo chown user:group ~/.viminfo

kullanıcı nerede username group genellikle kullanıcı adınız ile aynıdır.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:
Vim

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • HowcastTechGadgets

    HowcastTechG

    22 EYLÜL 2010
  • pjtoohot

    pjtoohot

    15 NİSAN 2008
  • theavettbrothers

    theavettbrot

    9 ŞUBAT 2007