Skip to content

Instantly share code, notes, and snippets.

@ArnaudBrousseau
Created December 18, 2010 21:09
Show Gist options
  • Save ArnaudBrousseau/746887 to your computer and use it in GitHub Desktop.
Save ArnaudBrousseau/746887 to your computer and use it in GitHub Desktop.
My .VIMRC file. Trying to constantly improve it with things I see here and there
set nocompatible
"no file like 'myfile~'. What a relief.
set nobackup
colorscheme fruit
set guifont=Courier_new:h12
"Tab stuff
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
"Show command in bottom right portion of the screen
set showcmd
"Show lines numbers
set number
"Indent stuff
set smartindent
set autoindent
"Always show the status line
set laststatus=2
"Prefer a slightly higher line height
set linespace=4
"Better line wrapping
"set wrap
"set textwidth=79
"Set incremental searching"
set incsearch
"Highlight searching
set hlsearch
" case insensitive search
set ignorecase
set smartcase
"Enable code folding
set foldenable
"Hide mouse when typing
set mousehide
"Split windows below the current window.
set splitbelow
" session settings
set sessionoptions=resize,winpos,winsize,buffers,tabpages,folds,curdir,help
"Automatically change current directory to that of the file in the buffer
autocmd BufEnter * cd %:p:h
"Map code completion to , + tab
imap ,<tab> <C-x><C-o>
" More useful command-line completion
set wildmenu
"Auto-completion menu
set wildmode=list:longest
set completeopt=longest,menuone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment