Skip to content

Instantly share code, notes, and snippets.

@ulmen
Created June 22, 2012 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ulmen/2973648 to your computer and use it in GitHub Desktop.
Save ulmen/2973648 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails.git'
Bundle 'The-NERD-Commenter'
Bundle 'The-NERD-tree'
Bundle 'ack.vim'
Bundle 'bufexplorer.zip'
Bundle 'vim-coffee-script'
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'ctrlp.vim'
Bundle 'SuperTab-continued.'
Bundle 'snipMate'
Bundle 'Lokaltog/vim-powerline'
Bundle 'molokai'
Bundle 'sickill/vim-monokai'
Bundle 'Solarized'
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
colorscheme monokai
" Indents
set autoindent " Включить автоотступы
set smartindent " Включаем "умные" отспупы ( например, автоотступ после {)
set shiftwidth=2 " длинна отступов
set expandtab
" remove whitespaces unneeded
autocmd BufWritePre * :%s/\s\+$//e
" настраиваем командную строку
set wildmenu " матерое автодополнение как в zsh
set showcmd " Показывать незавершённые команды в статусбаре
set number
" подсветить позицию курсора
set cursorline
" rvm fix
set shell=/bin/sh
if has("gui_running")
set guifont=Monaco\ for\ Powerline:h12
set guioptions=egmrt
endif
iab RuL ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
" NERDCommenter bindings
map " <plug>NERDCommenterToggle
vmap " <plug>NERDCommenterToggle
" open NERDTree on vim start
autocmd vimenter * NERDTree
" closes vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" NERDTree bindings
map <F9> :NERDTreeToggle<CR>
imap <F9> <Esc>:NERDTreeToggle<CR>
" Ack search - Command+Shift+F
map <D-F> :Ack<space>
" Powerline
let g:Powerline_symbols = 'fancy'
@kucaahbe
Copy link

это ж реинкарнация моего конфига))

@ulmen
Copy link
Author

ulmen commented Jun 22, 2012 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment