Skip to content

Instantly share code, notes, and snippets.

@GregLevenhagen
Last active December 1, 2016 02:15
Show Gist options
  • Select an option

  • Save GregLevenhagen/8909086 to your computer and use it in GitHub Desktop.

Select an option

Save GregLevenhagen/8909086 to your computer and use it in GitHub Desktop.
vimrc-windows
set nocompatible
source $VIMRUNTIME/mswin.vim
behave mswin
" Remove ALL auto-commands. This avoids having the autocommands twice when
" the vimrc file is sourced again.
autocmd!
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
set encoding=utf-8
set showcmd " display incomplete commands
set ruler
set laststatus=2 " Always show the statusline
set number " show line numbers
" tab settings
filetype plugin indent on " load file type plugins + indentation from indent folder
set autoindent " should not interfere with filetype based indentation, but smartident would
set tabstop=4
set shiftwidth=4
set expandtab " use spaces, not tabs
" Whitespace, except tabs
set nowrap " don't wrap lines
set backspace=indent,eol,start " make backspace work like most other apps
" Searching
set hlsearch " highlight matches
set incsearch " incremental search
set ignorecase " searches are case insensitive
set smartcase " depends on ignorecase: searches case insensitive unless one capital is used
" Menu
set wildmenu
set wildmode=list:longest,full
set sidescroll=1
set updatecount=0
set wrapscan
set report=1
set noshowmode
set showmatch
set helpheight=100
set nostartofline
set clipboard=autoselect
set visualbell t_vb=
set viminfo='20,\"50
set backupdir=C:/temp
let c_syntax_for_h=1
let perl_fold=1
set background=dark
colorscheme pablo
syntax enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment