Skip to content

Instantly share code, notes, and snippets.

@crusat
Last active February 27, 2018 12:07
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 crusat/e6311167318a73d52274 to your computer and use it in GitHub Desktop.
Save crusat/e6311167318a73d52274 to your computer and use it in GitHub Desktop.
" sudo add-apt-repository ppa:jonathonf/vim && sudo apt-get update && apt upgrade -y
" Install Vundle
" Install this .vimrc
" :PluginInstall
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline' " Тулбар
Plugin 'vim-airline/vim-airline-themes' " Темы для тулбара
Plugin 'flazz/vim-colorschemes' " Цветовые схемы
Plugin 'scrooloose/nerdtree' " Дерево каталогов
Plugin 'Xuyuanp/nerdtree-git-plugin' " Отображение git статусов для дерева каталогов и файлов
Plugin 'scrooloose/syntastic' " Syntax
Plugin 'chr4/nginx.vim' " Nginx highlight
Plugin 'davidhalter/jedi-vim' " Autocomplete Python
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
" Настройки NERD Tree
let NERDTreeShowHidden=1
" Настройки Vim-Airline
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'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '◀'
let g:airline_linecolumn_prefix = '¶ '
let g:airline_fugitive_prefix = '⎇ '
let g:airline_paste_symbol = 'ρ'
let g:airline_section_c = '%t'
" Hotkeys
" Ctrl+N - Показывает дерево файлов
map <C-n> :NERDTreeToggle<CR>
" Ctrl+T - Открывает новую вкладку
map <C-t> :tabnew<CR>
" Ctrl+W - Закрывает текущую вкладку
map <C-w> :q<CR>
" Ctrl+L - Форматирует код всей страницы
map <C-l> :retab<CR>gg=G
" Ctrl+R - Следующая вкладка
map <C-r> :tabnext<CR>
" пробелы вместо табуляции, ширина отступа — 4 пробела.
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set smartindent
" Другие настройки
set t_Co=256
set nu
colorscheme codeschool
syntax on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment