Created
November 13, 2013 18:27
-
-
Save Fosome/7453881 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
| " Work in progress | |
| set noswapfile | |
| set nobackup | |
| set number | |
| set guifont=Monaco:h13 | |
| set background=dark | |
| colorscheme getafe | |
| set expandtab | |
| set shiftwidth=2 | |
| set tabstop=2 | |
| set smarttab | |
| set autoindent | |
| set smartindent | |
| set wildignore+=public/uploads,tmp | |
| " Use Vim settings, rather than Vi settings (much better!). | |
| " This must be first, because it changes other options as a side effect. | |
| set nocompatible | |
| syntax on | |
| filetype on | |
| filetype indent on | |
| filetype plugin on | |
| " In many terminal emulators the mouse works just fine, thus enable it. | |
| if has('mouse') | |
| set mouse=a | |
| endif | |
| " disable arrow keys | |
| nmap <up> <nop> | |
| nmap <down> <nop> | |
| nmap <left> <nop> | |
| nmap <right> <nop> | |
| vmap <up> <nop> | |
| vmap <down> <nop> | |
| vmap <left> <nop> | |
| vmap <right> <nop> | |
| let mapleader = "," | |
| set iskeyword-=_ | |
| set iskeyword+=- | |
| "map <leader>hs :split<CR> | |
| "map <leader>vs :vsplit<CR> | |
| map <leader>h :wincmd h<CR> | |
| map <leader>j :wincmd j<CR> | |
| map <leader>k :wincmd k<CR> | |
| map <leader>l :wincmd l<CR> | |
| map <leader>n :NERDTree<CR> | |
| map <leader>c :NERDTreeClose<CR> | |
| " Mini Buff Explorer | |
| let g:miniBufExplMapWindowNavVim = 1 | |
| let g:miniBufExplMapCTabSwitchBufs = 1 | |
| let g:miniBufExplorerMoreThanOne = 0 | |
| " Command T | |
| let g:CommandTMaxFiles=50000 | |
| autocmd BufNewFile,BufRead *.js setlocal filetype=eruby noexpandtab shiftwidth=4 tabstop=4 ts=4 sts=4 | |
| autocmd BufNewFile,BufRead *.erb setlocal filetype=eruby noexpandtab shiftwidth=4 tabstop=4 ts=4 sts=4 | |
| autocmd BufNewFile,BufRead *.html setlocal filetype=html noexpandtab shiftwidth=4 tabstop=4 ts=4 sts=4 | |
| autocmd BufNewFile,BufRead *.ejs setlocal filetype=html noexpandtab shiftwidth=4 tabstop=4 ts=4 sts=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment