Skip to content

Instantly share code, notes, and snippets.

@piyushchauhan2011
Created October 21, 2014 16:43
Show Gist options
  • Save piyushchauhan2011/ec913fb96e97383a57b9 to your computer and use it in GitHub Desktop.
Save piyushchauhan2011/ec913fb96e97383a57b9 to your computer and use it in GitHub Desktop.
My .vimrc file
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
@piyushchauhan2011
Copy link
Author

Plugins in bundle folder

  • ack.vim
  • ag
  • base16-vim
  • ctrl-p.vim
  • emmet.vim
  • gist-vim
  • html5.vim
  • jedi-vim
  • jquery.vim
  • LustyExplorer
  • mango.vim
  • molokai
  • mru
  • nerdtree
  • scss-syntax.vim
  • snipmate.vim
  • tcomment_vim
  • textile.vim
  • vim-airline
  • vim-angular
  • vim-backbone
  • vim-bundler
  • vim-coffee-script
  • vim-colors-pencil
  • vim-colors-solarized
  • vim-css3-syntax
  • vim-cucumber
  • vim-easymotion
  • vim-fugitive
  • vim-git
  • vim-gitgutter
  • vim-haml
  • vim-jade
  • vim-javascript-syntax
  • vim-less
  • vim-markdown
  • vim-multiple-cursors
  • vim-mustache-handlebars
  • vim-nerdtree-tabs
  • vim-node
  • vim-projectionist
  • vim-rails
  • vim-rake
  • vim-repeat
  • vim-ruby-debugger
  • vim-scala
  • vim-sensible
  • vim-shoulda
  • vim-stylus
  • vim-supertab
  • vim-surround
  • vim-tmux
  • vim-tomorrow-theme
  • vim-vividchalk
  • webapi-vim
  • Zenburn

@piyushchauhan2011
Copy link
Author

CVim Support

  • cvim.zip
  • ftplugin

ruby.vim

Contains "compiler ruby"

@piyushchauhan2011
Copy link
Author

piyushchauhan2011 commented Mar 18, 2022

: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