Created
October 21, 2014 16:43
-
-
Save piyushchauhan2011/ec913fb96e97383a57b9 to your computer and use it in GitHub Desktop.
My .vimrc file
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
| execute pathogen#infect() | |
| syntax on | |
| filetype plugin indent on | |
| call pathogen#helptags() | |
| filetype plugin on | |
| set omnifunc=syntaxcomplete#Complete | |
| colorscheme solarized | |
| " colorscheme pencil | |
| set background=dark | |
| " let g:solarized_termcolors=256 | |
| set number | |
| set autoindent | |
| set expandtab | |
| set shiftwidth=2 | |
| set softtabstop=2 | |
| set backspace=2 | |
| autocmd FileType python setlocal shiftwidth=2 tabstop=2 | |
| set hidden | |
| set mouse=a | |
| autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o | |
| " augroup vimrc | |
| " au BufReadPre * setlocal foldmethod=indent | |
| " au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif | |
| " augroup END | |
| " au FileType javascript call JavaScriptFold() | |
| let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|.git|.svn|.hg|CVS|.tmp|.sass-cache|' | |
| map <C-u> :NERDTreeToggle<CR> | |
| " autocmd vimenter * NERDTree | |
| map <Leader>n <plug>NERDTreeTabsToggle<CR> | |
| function RunWith (command) | |
| execute "w" | |
| execute "!clear;time " . a:command . " " . expand("%") | |
| endfunction | |
| autocmd FileType coffee nmap <buffer> <F5> :call RunWith("coffee")<cr> | |
| autocmd FileType ruby nmap <buffer> <F5> :call RunWith("ruby")<cr> | |
| autocmd FileType python nmap <buffer> <F5> :call RunWith("python")<cr> | |
| autocmd FileType javascript nmap <buffer> <F5> :call RunWith("node")<cr> | |
| autocmd FileType php nmap <buffer> <F5> :call RunWith("php")<cr> | |
| let g:EasyMotion_do_mapping = 0 " Disable default mappings | |
| " Bi-directional find motion | |
| " Jump to anywhere you want with minimal keystrokes, with just one key | |
| " binding. | |
| " `s{char}{label}` | |
| nmap s <Plug>(easymotion-s) | |
| " or | |
| " `s{char}{char}{label}` | |
| " Need one more keystroke, but on average, it may be more comfortable. | |
| nmap s <Plug>(easymotion-s2) | |
| " Turn on case sensitive feature | |
| let g:EasyMotion_smartcase = 1 | |
| " JK motions: Line motions | |
| map <Leader>j <Plug>(easymotion-j) | |
| map <Leader>k <Plug>(easymotion-k) | |
| " airline theme | |
| let g:airline_theme='simple' | |
| " let g:airline_powerline_fonts=1 | |
| set guifont=Monospace\ 13 |
CVim Support
- cvim.zip
- ftplugin
ruby.vim
Contains "compiler ruby"
:set number
:syntax on
" Use new regular expression engine
:set re=0
:filetype plugin indent on
:set tabstop=4
:set shiftwidth=4
:set expandtab
:set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣
:set list
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plugins in bundle folder