Created
August 20, 2011 02:29
-
-
Save neilang/1158525 to your computer and use it in GitHub Desktop.
my .vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on " Syntax highlight | |
" set backspace=2 | |
set backspace=indent,eol,start " Fixes backspace on unix systems | |
set tabstop=2 " set tab width | |
set shiftwidth=2 | |
set expandtab " spaces instead of tabs | |
set list " Show invisibles | |
set listchars=tab:»·,trail:· | |
set number " line numbers in gutter | |
set hlsearch " highlight the search terms | |
set incsearch " jump to the matches while typing | |
set ignorecase " ignore case while searching | |
set smartcase " ... unless the search term is mixed case | |
set showmatch " show matching braces | |
set autoread " reload files when they change outside vim | |
set smartindent " indent after { etc | |
set hidden " lets you switch buffers without saving first | |
set mouse=a " lets you use the mouse in terminal vim | |
filetype plugin indent on " auto-detect the filetype | |
set completeopt=menuone,longest " Always show the menu, insert longest match | |
set encoding=utf-8 | |
set nu | |
nmap Q q | |
nmap q <esc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you might like these:
also if you're going to
set list
, try something like: