Created
January 20, 2012 13:52
-
-
Save dolph/1647465 to your computer and use it in GitHub Desktop.
Vim Configuration
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
set guifont=Menlo\ Bold:h16 |
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
" set color theme | |
colorscheme solarized | |
" change the leader to be a comma vs slash | |
let mapleader="," | |
" syntax highlighing | |
syntax on | |
" display line numbers | |
set number | |
" using only 1 column (and 1 space) while possible | |
set numberwidth=1 | |
" we are using dark background in vim | |
set background=dark | |
" ignore these files when completing | |
set wildignore+=.git,*.pyc | |
" show a line at column 79 | |
if exists("&colorcolumn") | |
set colorcolumn=79 | |
endif | |
" have a line indicate the cursor location | |
set cursorline | |
" show the cursor position all the time | |
set ruler | |
" use spaces, not tabs, for autoindent/tab key. | |
set expandtab | |
" don't wrap text | |
set nowrap | |
" don't wrap textin the middle of a word | |
set linebreak | |
" always set autoindenting on | |
set autoindent | |
" use smart indent if there is no indent file | |
set smartindent | |
" <tab> inserts 4 spaces | |
set tabstop=4 | |
" but an indent level is 4 spaces wide. | |
set shiftwidth=4 | |
" <BS> over an autoindent deletes both spaces. | |
set softtabstop=4 | |
" rounds indent to a multiple of shiftwidth | |
set shiftround | |
" show matching <> (html mainly) as well | |
set matchpairs+=<:> | |
" allow us to fold on indents | |
set foldmethod=indent | |
" don't fold by default | |
set foldlevel=99 | |
" don't bell or blink | |
set noerrorbells | |
set vb t_vb= | |
" keep our cursor in the middle of the screen | |
set scrolloff=100 | |
set sidescrolloff=30 | |
" show whitespace | |
set list | |
set listchars=tab:>-,trail:~ | |
" default to using case insensitive searches ... | |
set ignorecase | |
" ... unless uppercase letters are used in the regex. | |
set smartcase | |
" handle tabs more intelligently while searching | |
set smarttab | |
" highlight searches by default. | |
set hlsearch | |
" incrementally search while typing a /regex | |
set incsearch | |
" remove trailing whitespace on <leader>S | |
noremap <leader>S :%s/\s\+$//<cr>:let @/=''<CR> | |
if has("gui_running") | |
" Load pathogen with docs for all plugins | |
filetype off | |
call pathogen#runtime_append_all_bundles() | |
" call pathogen#helptags() | |
filetype on | |
# disable macvim toolbar | |
set guioptions=egmrt | |
# remove right and left scrollbars | |
set guioptions-=r | |
set guioptions-=l | |
endif | |
" enable pyflakes? | |
filetype plugin indent on | |
" Open NerdTree | |
map <leader>n :NERDTreeToggle<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment