Last active
October 4, 2015 11:27
-
-
Save luizfonseca/2628187 to your computer and use it in GitHub Desktop.
My .vimrcUpdate VIM-SLIM plugin from slim-template/ organization.
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 " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/Vundle.vim/ | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" Plugin: | |
Plugin 'L9' | |
Plugin 'FuzzyFinder' | |
Plugin 'ack.vim' | |
Plugin 'slim-template/vim-slim.git' | |
Plugin 'tpope/vim-rails.git' | |
Plugin 'tpope/vim-fugitive.git' | |
Plugin 'pangloss/vim-javascript.git' | |
Plugin 'tpope/vim-surround.git' | |
Plugin 'scrooloose/nerdcommenter.git' | |
Plugin 'tpope/vim-haml.git' | |
Plugin 'bronson/vim-runtest.git' | |
Plugin 'msanders/snipmate.vim.git' | |
Plugin 'vim-ruby/vim-ruby.git' | |
Plugin 'kana/vim-textobj-user.git' | |
Plugin 'edsono/vim-matchit.git' | |
Plugin 'nelstrom/vim-textobj-rubyblock.git' | |
Plugin 'kchmck/vim-coffee-script.git' | |
Plugin 'clones/vim-fuzzyfinder.git' | |
Plugin 'digitaltoad/vim-jade.git' | |
Plugin 'lukerandall/haskellmode-vim' | |
Plugin 'vim-scripts/haskell.vim.git' | |
Plugin 'scrooloose/syntastic.git' | |
Plugin 'skammer/vim-css-color.git' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'mattn/webapi-vim.git' | |
Plugin 'mattn/gist-vim.git' | |
Plugin 'scrooloose/nerdtree.git' | |
Plugin 'bling/vim-airline.git' | |
" Color schemes | |
Plugin 'tomasr/molokai.git' | |
Plugin 'ciaranm/inkpot.git' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
" jump to the last position when reopening a file | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
endif | |
" Change leader key | |
let mapleader = "," | |
" load indentation rules and plugins according to the detected filetype. | |
filetype on " enable filetype detection | |
filetype plugin indent on | |
filetype plugin on | |
let g:Tex_ViewRule_pdf = 'Preview' | |
" | |
" User Interface | |
" | |
" Syntax highlighting, only if the feature is available and the terminal can | |
" display colors | |
" (tabo@20040210) had to fix this because t_Co doesn't work in gvim@win32 | |
if has('syntax') && (&t_Co > 2 || has('win32')) | |
syntax on " enable syntax highlighting | |
colorscheme default " load a colorscheme, it's redundant to use | |
endif | |
set number | |
set guifont=Monaco:h14 | |
set background=dark | |
set shortmess+=filmnrxoOtT " abbrev. of messages (avoids 'hit enter') | |
set showmode " display the current mode | |
set showcmd | |
" | |
" Statusline | |
" | |
set laststatus=2 | |
set statusline=%<%f\ %2*%{&ff}%*\ %2*%{&fenc}%*\ %1*%{fugitive#statusline()}%*\ %{v:register}%=\:\b%n%1*%y%*%m%r%w\ (%l,%c%V)\ %P | |
" | |
" Editing | |
" | |
let g:rubycomplete_rails = 1 | |
let g:python_highlight_all = 1 | |
set backspace=indent,eol,start " backspace for dummys | |
set showmatch " show matching brackets/parenthesis | |
set wildmode=list:longest,full " comand <Tab> completion, list matches and | |
" complete the longest common part, then, | |
" cycle through the matches | |
set incsearch | |
set smartindent | |
set ignorecase | |
set smartcase | |
set cursorline | |
set nowrap " wrap long lines | |
set autoindent " indent at the same level of the previous line | |
set shiftwidth=2 " use indents of 4 spaces | |
set tabstop=2 | |
set softtabstop=2 | |
set smarttab | |
set matchpairs+=<:> " match, to be used with % | |
set expandtab " spaces instead of tabs, CTRL-V<Tab> to insert | |
" a real space | |
set pastetoggle=<F12> " pastetoggle (sane indentation on pastes) | |
" just press F12 when you are going to | |
" paste several lines of text so they won't | |
" be indented | |
" When in paste mode, everything is inserted | |
" literally. | |
" | |
" gvim- (here instead of .gvimrc) | |
" | |
if has('gui_running') | |
set lines=40 " 40 lines of text instead of 24, | |
colorscheme inkpot | |
endif | |
if has("gui_macvim") | |
map <C-f> :NERDTreeToggle <CR> | |
map <D-/> <plug>NERDCommenterToggle<CR> | |
imap <D-/> <Esc><plug>NERDCommenterToggle<CR>i | |
endif | |
" | |
" misc, there is _always_ a misc section | |
" | |
set nobackup " real men _never_ _ever_ do backups | |
set directory=~/.vim/tmp | |
set encoding=utf8 | |
" CtrlP configuration | |
let g:ctrlp_map = '<Leader>t' |
Changed Command-T to CtrlP, no need to make or compile the extension. Just run :BundleInstall e be happy :)
You will need to clone Vundler first: https://github.com/gmarik/vundle
And you will need to create a directory ~/.vim/tmp to allow temp files.
Using https://github.com/bling/vim-airline.git (Airline) instead of Powerline!
Update vundle repository name to Vundle.vim
Fixed "
and Vundle Call.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After that, enter on command-t/ruby directory and
ruby extconf.rb
&& make. Done, command-T working.