set nocompatible " be iMproved, required filetype off " required call plug#begin() " let Vundle manage Vundle, required Plug 'VundleVim/Vundle.vim' Plug 'tpope/vim-sensible' | " a sane and modern default configuration Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' Plug 'tpope/vim-repeat' | " lets . (dot) repeat plugin macros as well, specifically vim-surround Plug 'tpope/vim-vinegar' | " Improves :Explore Plug 'tpope/vim-characterize' | " normal mode: make ga show character names of Unicode chars (ga shows hex and dec values) Plug 'gregsexton/matchtag' | " highlights closing ML tags like braces Plug 'loremipsum' | " Sample text generator Plug 'vim-airline/vim-airline' | " beautification of the mode line Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme Plug 'sheerun/vim-polyglot' Plug 'f-breidenstein/icinga-vim' Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= "# Plugin 'indenthtml.vim' | " works better with mixed html/css/javascript "# Plugin 'evanmiller/nginx-vim-syntax' " Plugin 'tpope/vim-vividchalk' | " dark theme " Plugin 'nelstrom/vim-mac-classic-theme' | " light theme " All of your Plugins must be added before the following line call plug#end() | " all plugins are getting loaded on this line, don't remove! filetype plugin indent on | " required " set term=xtermc | " required on solaris set t_Co=256 colorscheme industry set background=light let g:airline_theme='luna' let g:airline_powerline_fonts = 1 " enable airline's fancy headline with all buffers and tabs let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#show_buffers = 1 let g:airline#extensions#tabline#show_tabs = 1 syntax on set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=) set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained set lazyredraw set ttyscroll=3 set ttyfast set mouse=a set hidden set viminfo+=% | " restore buffer list " set title " set t_ts=^[k " set t_fs=^[\ " auto BufEnter * :set title | let &titlestring = 'v:' . expand('%') " auto VimLeave * :set t_ts=^[k^[\ " 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 " if has("autocmd") set modeline | " set variables specific to a file, like indentation by adding a comment endif " set window title for screen(3) if &term == "screen" set t_ts=k set t_fs=\ endif if &term == "screen" || &term == "xterm" let &titlestring = "%t|".$USER."@".hostname().":%{expand(\"%:~:.:h\")}%=%y" set title endif " let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" " automatically remove trailing white spaces on save.. autocmd BufWritePre * %s/\s\+$//e nnoremap :bn| " lets one use CTRL+Tab to switch between tabs nnoremap :bp| " use CTRL+Shift+Tab to switch to preview tab