Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The defaults in vim 8 in debian and ubuntu really changed the way vim worked, it was horrendous

As far as I'm concerned, the following is an non-negotiable requirement for vimrc.

  source /usr/share/vim/vim80/defaults.vim
  set noincsearch
  set scrolloff=0
  set mouse=


Just to extend this - if you're often using different users (or need to otherwise deploy via a configuration manager), I've found out that a good way of having system-wide options on Debian is /etc/vim/vimrc.local with something like:

   " Workaround stupid defaults.vim behaviour
   if filereadable("/usr/share/vim/vim80/defaults.vim")
      source /usr/share/vim/vim80/defaults.vim
   endif
   let g:skip_defaults_vim = 1
 
   " Disable stupid seeking to last position
   autocmd! vimStartup BufRead
 
   " Disable stupid mouse support
   set mouse=




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: