Skip to content

Instantly share code, notes, and snippets.

@mykola-radionov
Created December 18, 2016 20:34
Show Gist options
  • Save mykola-radionov/02cdfddacd97738d77a2d9526bd28ab5 to your computer and use it in GitHub Desktop.
Save mykola-radionov/02cdfddacd97738d77a2d9526bd28ab5 to your computer and use it in GitHub Desktop.
set t_Co=256
"========================================
" Vundle setting
"========================================
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmqrik/Vundle.vim'
"---------=== Code/project navigator ===---------
Plugin 'scrooloose/nerdtree' " Project and file navigator
Plugin 'majutsushi/tagbar' " Class and module browser (install 'exuberant-ctags' before using)
Plugin 'jlanzarotta/bufexplorer' " Quickly and easily switch between buffers
"---------=== Other ===---------
"Plugin 'vim-airline/vim-airline-themes' " Lean & mean status/tabline for vim
Plugin 'bling/vim-airline'
" Snippets
Plugin 'garbas/vim-snipmate'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'honza/vim-snippets'
"---------=== HTML, CSS, JavaScript ===---------
Plugin 'tpope/vim-surround' " Parentheses, brackets, quotes, XML tags, and more
Plugin 'othree/html5.vim' " HTML5 omnicomplete and syntax
Plugin 'groenewege/vim-less' " vim syntax for LESS (dynamic CSS)
Plugin 'jelera/vim-javascript-syntax'
Plugin 'pangloss/vim-javascript'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'mklabs/vim-backbone'
"---------=== Python and python-frameworks ===---------
Plugin 'klen/python-mode' " Python mode (docs, refactor, lints, highlighting, run and ipdb and more)
Plugin 'davidhalter/jedi-vim' " Jedi-vim autocomplete plugin
Plugin 'mitsuhiko/vim-jinja' " Jinja support for vim
Plugin 'mitsuhiko/vim-python-combined' " Combined Python 2/3 for Vim
"---------=== PHP ===---------
Plugin 'shawncplus/phpcomplete.vim' " Improved PHP omnicompletion
call vundle#end()
filetype on
filetype plugin on
filetype plugin indent on
"========================================
" General settings
"========================================
syntax on
set background=dark
"colorscheme flattened_dark
set encoding=utf8
set nu
set scrolloff=5
set nobackup
set nowritebackup
set noswapfile
"set guioptions-=m
set guioptions-=T
"set guioptions-=r
set shiftwidth=4
set tabstop=4
set expandtab
" make string line numbers gray
highlight LineNr ctermfg=053
" make search matches highlighted
set hlsearch
" make vim running maximized
set lines=999 columns=999
" Highlight characters if length of code string more then 80 characters in
" files of Ruby/Python/JavaScript/PHP
augroup vimrc_autocmds
autocmd!
autocmd FileType ruby,python,javascript,php highlight Excess ctermbg=DarkGrey guibg=Black
autocmd FileType ruby,python,javascript,php match Excess /\%80v.*/
autocmd FileType ruby,python,javascript,php set nowrap
augroup END
" Vim-Airline settings
set laststatus=2
let g:airline_theme='badwolf'
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'unique_tail'
"========================================
" Keys binding
"========================================
"--------=== TagBar settings ===--------
map <F4> :TagbarToggle<CR>
let g:tagbar_autofocus = 0
"--------=== NerdTree settings ===--------
map <F3> :NERDTreeToggle<CR>
let NERDTreeIgnore=['\~$', '\.pyc$', '\.pyo$', '\.class$', 'pip-log\.txt$', '\.o$']
"--------=== BufExplorer settings ===--------
map <F5> :BufExplorer<CR>
"--------=== Buffers settings ===--------
map <F9> :bd<CR> " Close current buffer
map <C-n> :bn<CR> " Switch on next buffer
map <C-p> :bp<CR> " Switch on previous buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment