Skip to content

Instantly share code, notes, and snippets.

@samsoir
Created May 17, 2019 21:17
Show Gist options
  • Save samsoir/1ea878434d6a08dda66c5513f1354781 to your computer and use it in GitHub Desktop.
Save samsoir/1ea878434d6a08dda66c5513f1354781 to your computer and use it in GitHub Desktop.
Vim Configuration
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'kchmck/vim-coffee-script'
Plugin 'raimon49/requirements.txt.vim'
Plugin 'hdima/python-syntax'
call vundle#end() " required
filetype plugin indent on " required
syntax on
set t_Co=256
syntax enable
colors twilight256
let mapleader="`"
sy on
set nocompatible " choose no compatibility with legacy vi
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
set number
"" Whitespace
set smartindent
set nowrap " don't wrap lines
set shiftwidth=2 tabstop=2 " a tab is two spaces (or set this to 4)
set expandtab
set backspace=indent,eol,start " backspace through everything in insert mode
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
set list
set listchars=tab:▸\ ,eol:¬
"Invisible character colors
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59
"" Mouse on
set mouse=a
"" Over 80 column limit
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment