Skip to content

Instantly share code, notes, and snippets.

@LeZuse
Created December 14, 2012 21:28
Show Gist options
  • Select an option

  • Save LeZuse/4288804 to your computer and use it in GitHub Desktop.

Select an option

Save LeZuse/4288804 to your computer and use it in GitHub Desktop.
Vim config
" highlight
syntax on
" use utf8
set encoding=utf-8 nobomb
" identation plugin
filetype plugin indent on
" disable compat
set nocompatible
" allow unsaved changes
set hidden
" no audio
set vb
" remmeber cursor position
augroup vimrcEx
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
" do not write dot files
set nobackup
set noswapfile
set nowb
" visible trailing spaces and tabs
set list listchars=tab:▸⋅,trail:⋅,nbsp:⋅
" tab settings
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
" show commands in right bottom corner
set showcmd
set cmdheight=2
" combine vim and os clipboard
" needs special compilation
"set clipboard=unnamed
" command line intelisense
set wildmenu
set wildignore=*.o,*.obj,*.bak,*.exe,*.pyc,*.DS_Store,*.db,*.png
" bottom status line
set laststatus=2
" show search matches
set incsearch
"set hlsearch
"set ignorecase smartcase
" hightlight matching pair character
set showmatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment