Skip to content

Instantly share code, notes, and snippets.

@troyfontaine
Created September 10, 2018 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save troyfontaine/83683e74b1b074d12801e7492f3ebe5f to your computer and use it in GitHub Desktop.
Save troyfontaine/83683e74b1b074d12801e7492f3ebe5f to your computer and use it in GitHub Desktop.
Raspbian Stretch VIM Fix

Fix for blasted visual editor mode

Create the following file: /etc/vim/vimrc.local

" This file loads the default vim options at the beginning and prevents
" that they are being loaded again later. All other options that will be set,
" are added, or overwrite the default settings. Add as many options as you
" whish at the end of this file.

" Load the defaults
source /usr/share/vim/vim80/defaults.vim

" Prevent the defaults from being loaded again later, if the user doesn't
" have a local vimrc (~/.vimrc)
let skip_defaults_vim = 1


" Set more options (overwrites settings from /usr/share/vim/vim80/defaults.vim)
" Add as many options as you whish

" Set the mouse mode to 'r'
if has('mouse')
  set mouse=r
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment