"GENERAL SETTINGS syntax on set number set autoread autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif set clipboard=unnamedplus set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab set updatetime=250 set title autocmd GUIEnter * set vb t_vb= set belloff=all function! ToggleGUICruft() if &guioptions=='' exec('set guioptions=mT') else exec('set guioptions=') endif endfunction noremap :call ToggleGUICruft() "KEYBINDINGS nmap v nmap v nmap v nmap v vmap vmap vmap vmap imap v imap v imap v imap v vmap yi vmap di map pi map v$ imap pi map u map i map ggVG map "+y imap :w map :w map :bd map :q! map :tabnew# map :source ~/.vimrc noremap i a " VUNDLE PLUGINS set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'morhetz/gruvbox' Plugin 'dracula/vim',{'name':'dracula'} Plugin 'rakr/vim-one' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'airblade/vim-gitgutter' Plugin 'preservim/nerdtree' Plugin 'dense-analysis/ale' Plugin 'tpope/vim-surround' Plugin 'jiangmiao/auto-pairs' Plugin 'ycm-core/YouCompleteMe' " Plugin 'Chiel92/vim-autoformat' -----> sudo apt-get install astyle (for cpp) call vundle#end() " PLUGIN PREFERENCES let g:airline_powerline_fonts = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif let g:airline_left_sep = '»' let g:airline_left_sep = '▶' let g:airline_right_sep = '«' let g:airline_right_sep = '◀' let g:airline_symbols.linenr = '¶' let g:airline_symbols.branch = '⎇' let g:airline_symbols.paste = 'ρ' let g:airline_symbols.paste = 'Þ' let g:airline_symbols.paste = '∥' let g:airline_symbols.whitespace = 'Ξ' let g:airline_left_sep = '' let g:airline_left_alt_sep = '' let g:airline_right_sep = '' let g:airline_right_alt_sep = '' let g:airline_symbols.branch = '' let g:airline_symbols.readonly = '' let g:airline_symbols.linenr = 'L' filetype plugin indent on let g:NERDTreeWinPos = "right" let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#left_sep = ' ' let g:airline#extensions#tabline#left_alt_sep = '|' let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py' nnoremap :bprevious nnoremap :bnext nmap :NERDTreeToggle let NERDTreeShowHidden=1 " THEMING " set guioptions= " let g:dracula_colorterm = 0 set termguicolors colorscheme dracula set background=dark hi Normal guibg=NONE ctermbg=NONE " set guifont=Source\ Code\ Pro\ 10 " SYSTEM SPECIFIC SETTINGS cd ~/Desktop/Coding\ Library/Ongoing function! Templatecpp() :1,$d :read ~/Desktop/Coding\ Library/IDE/template.cpp :1d endfunction command Template :call Templatecpp() " COMPILE RUN map :w:!g++ -o compiled.o % -std=c++17 && ./compiled.o auto BufWritePost *.cpp execute 'silent :!astyle > /dev/null 2>&1'shellescape(expand('%'),1)