Created
May 1, 2013 09:22
-
-
Save OrangeTux/5494459 to your computer and use it in GitHub Desktop.
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 nocompatible | |
set number | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
syntax on | |
filetype plugin indent on | |
" Bundles | |
Bundle 'gmarik/vundle' | |
Bundle 'scrooloose/nerdtree.git' | |
Bundle 'scrooloose/nerdcommenter' | |
""""""""""""""""""""" | |
" Startup | |
""""""""""""""""""""" | |
autocmd VimEnter * NERDTree | |
split | |
""""""""""""""""""""" | |
" Misc | |
""""""""""""""""""""" | |
" Map <alt> to : | |
map <A-> <esc>: | |
" Set key 'R' for run python code | |
let g:pymode_run_key = 'R' | |
" Load show documentation plugin | |
let g:pymode_doc = 1 | |
" Key for show python documentation | |
let g:pymode_doc_key = 'K' | |
" Load run code plugin | |
let g:pymode_run = 1 | |
" Key for run python code | |
let g:pymode_run_key = '<leader>r' | |
" Show command when typing. " | |
set showcmd | |
set expandtab | |
set smarttab | |
" Handlebars | |
au BufRead,BufNewFile *.handlebars,*.hbs set ft=html syntax=handlebars | |
"""""""""""""""""" | |
" Files | |
"""""""""""""""""" | |
" Ignore compiled files | |
set wildignore=*.pyc | |
set nobackup | |
set nowb | |
set noswapfile | |
""""""""""""""""""""" | |
" Searching | |
""""""""""""""""""""" | |
" Ignore case while searching | |
set ignorecase | |
" Highlight search results | |
set hlsearch | |
" Intelegent searching | |
set incsearch | |
" For regex expresiions | |
set magic | |
" Show matching brackets or parenthesis when hovering | |
set showmatch | |
"""""""""""""""""""" | |
" Tabs and indenting | |
"""""""""""""""""""" | |
" Use spaces instead of tabs | |
set expandtab | |
set smarttab | |
set shiftwidth=4 | |
set tabstop=4 | |
""""""""""""""""""" | |
" Moving around | |
""""""""""""""""""" | |
map <tab>t :tabn | |
map <tab>to :tabp | |
map <tab>te :tabe | |
map <tab>tc :tabclose | |
"""""""""""""""""" | |
" View | |
"""""""""""""""""" | |
map :vs :vsplit | |
map :s :split |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment