"split navigations nnoremap nnoremap nnoremap nnoremap " PLugins call plug#begin('~/.vim/plugged') Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'joshdick/onedark.vim' " Atom-style dark theme Plug 'sheerun/vim-polyglot' " syntax highlighting in most languages Plug 'jiangmiao/auto-pairs' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'tpope/vim-commentary' Plug 'kien/ctrlp.vim' " Fast transitions on project files Plug 'tpope/vim-surround' call plug#end() syntax on colorscheme onedark filetype on filetype plugin on filetype plugin indent on " Set Airline bar theme let g:airline_theme='bubblegum' "rainbow Plugin Options (luochen1990/rainbow) let g:rainbow_active = 1 " 0 if you want to enable it later via :RainbowToggle " Colour at column 80 set t_Co=256 set nocompatible set number " show line numbers set wrap " wrap lines set encoding=utf-8 " set encoding to UTF-8 (default was "latin1") set mouse=a " enable mouse support (might not work well on Mac OS X) set wildmenu " visual autocomplete for command menu set lazyredraw " redraw screen only when we need to set showmatch " highlight matching parentheses / brackets [{()}] set laststatus=2 " always show statusline (even with only single window) set ruler " show line and column number of the cursor on right side of statusline set visualbell " blink cursor on error, instead of beeping set backspace=indent,eol,start " Bring backspace to life set tabstop=4 " width that a character displays as set expandtab " convert key-presses to spaces set shiftwidth=4 " number of spaces to use for each step of (auto)indent set softtabstop=4 " backspace after pressing will remove up to this many spaces set autoindent " copy indent from current line when starting a new line set smartindent syntax enable " enable syntax processing set linebreak " Causes vim to not wrap text in the middle of a word set pastetoggle= " Useful so auto-indenting doesn't mess up code when pasting filetype plugin indent on set encoding=utf-8 set backspace=indent,eol,start set clipboard=unnamed set noexpandtab set copyindent set preserveindent set softtabstop=0 set shiftwidth=2 set tabstop=2 set nobackup ? " no backup files set nowritebackup " only in case you don't want a backup file while editing set noswapfile ? " no swap files " Enable folding nnoremap za " Font set macligatures set guifont=Fira\ Code:h15 " UI config set number " show line numbers set showmatch " highlight matching [{()}] " split settings set splitright set splitbelow "===================================================== "" AirLine settings "===================================================== let g:airline_theme='badwolf' let g:airline#extensions#tabline#enabled=1 let g:airline#extensions#tabline#formatter='unique_tail' let g:airline_powerline_fonts=1 nnoremap :NERDTreeToggle autocmd VimEnter * NERDTree set guioptions+=e " CTRL-Tab is next tab noremap :tabnext inoremap :tabnext cnoremap :tabnext " CTRL-SHIFT-Tab is previous tab noremap :tabprevious inoremap :tabprevious cnoremap :tabprevious