Skip to content

Instantly share code, notes, and snippets.

@smoaddeli
Created August 21, 2015 15:31
Show Gist options
  • Save smoaddeli/da9ff6a2e3cd5e2310fc to your computer and use it in GitHub Desktop.
Save smoaddeli/da9ff6a2e3cd5e2310fc to your computer and use it in GitHub Desktop.

Revisions

  1. smoaddeli created this gist Aug 21, 2015.
    63 changes: 63 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,63 @@
    " SOURCE: http://amix.dk/vim/vimrc.html

    " Use case insensitive search, except when using capital letters
    set ignorecase
    set smartcase

    " Highlight search results
    set hlsearch

    " Makes search act like search in modern browsers
    set incsearch

    " When opening a new line and no filetype-specific indenting is enabled, keep
    " the same indent as the line you're currently on. Useful for READMEs, etc.
    "set autoindent
    "set smartindent

    " Sets how many lines of history VIM has to remember
    set history=700

    " Enable filetype plugins
    "filetype plugin on
    "filetype indent on

    " Display the cursor position on the last line of the screen or in the status
    " line of a window
    set ruler

    " Display line numbers on the left
    "set number

    " Configure backspace so it acts as it should act
    set backspace=eol,start,indent
    set whichwrap+=<,>,h,l

    " Show matching brackets when text indicator is over them
    set showmatch
    " How many tenths of a second to blink when matching brackets
    set mat=2

    " Enable syntax highlighting
    syntax enable

    " Set utf8 as standard encoding and en_US as the standard language
    set encoding=utf8

    " Use Unix as the standard file type
    set ffs=unix,dos,mac

    " Turn backup off, since most stuff is in SVN, git et.c anyway...
    set nobackup
    set nowb
    set noswapfile

    " Use spaces instead of tabs
    set expandtab

    " Be smart when using tabs ;)
    set smarttab

    " 1 tab == 4 spaces
    set shiftwidth=4
    set tabstop=4