Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save lovemycodesnippets/50d784d2e7f5e3e9e03db46a5c2e42b7 to your computer and use it in GitHub Desktop.

Select an option

Save lovemycodesnippets/50d784d2e7f5e3e9e03db46a5c2e42b7 to your computer and use it in GitHub Desktop.
set nocompatible                 " disables compatibility with old-time vi
set showmatch                    " shows matching
set ignorecase                     " case insensitive
set mouse=v                        " middle-click paste with
set hlsearch                         " highlight search
set incsearch                        " incremental search
set tabstop=4                        " number of columns occupied by a tab
set softtabstop=4                  " see multiple spaces as tabstops so <BS> does the right thing
set expandtab                       " converts tabs to white space
set shiftwidth=4                     " width for autoindents
set autoindent                       " indents a new line the same amount as the line just typed
set number                           " adds line numbers
set wildmode=longest,list     " gets bash-like tab completions
set cc=80                             " sets an 80-column border for good coding style
filetype plugin indent on       "allows auto-indenting depending on file type
syntax on                             " enables syntax highlighting
set mouse=a                       " enables mouse click
set clipboard=unnamedplus " uses system clipboard
filetype plugin on
set cursorline                      " highlights current cursorline
set ttyfast                            " Speeds up scrolling in Vim
" set spell                            " enables spell check (may need to download language package)
" set noswapfile                  " disables creating swap file
" set backupdir=~/.cache/vim " Directory to store backup files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment