Created
January 5, 2012 08:31
-
-
Save scturtle/1564263 to your computer and use it in GitHub Desktop.
vimrc for imac
This file contains 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
" configure vundle | |
set nocompatible " be iMproved | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'The-NERD-Commenter' | |
Bundle 'taglist.vim' | |
Bundle 'Conque-Shell' | |
" show line and row number on cursor | |
set ruler | |
" for search | |
set ignorecase | |
set incsearch | |
set hlsearch | |
set magic | |
" show matching bracket | |
set showmatch | |
" indent | |
set autoindent | |
set smartindent | |
syntax on | |
filetype plugin indent on | |
" In many terminal emulators the mouse works just fine, thus enable it. | |
if has('mouse') | |
set mouse=a | |
endif | |
" no template files | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
"colorscheme macvim | |
if has("gui_running") | |
colorscheme torte | |
endif | |
set guifont=Menlo:h16 | |
" encoding | |
set encoding=utf-8 | |
set termencoding=utf8 | |
" file encoding | |
set fileencodings=utf-8,chinese,latin-1 | |
" indent | |
autocmd FileType c,cpp,h setlocal expandtab sta tabstop=4 softtabstop=4 shiftwidth=4 | |
autocmd FileType python setlocal et sta ts=4 sts=2 sw=4 | |
autocmd FileType html,htmldjango setlocal et sta ts=2 sts=2 sw=2 | |
autocmd FileType python setlocal makeprg=python\ % | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
let mapleader="," | |
map<silent><leader>ss :source ~/.vimrc<cr> | |
map<silent><leader>ee :e ~/.vimrc<cr> | |
autocmd! bufwritepost .vimrc source ~/.vimrc | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
map <C-j> <C-W>j | |
map <C-k> <C-W>k | |
map <C-h> <C-W>h | |
map <C-l> <C-W>l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment