" vimrc " " Map leader key to space key let mapleader = " " " Enable syntax highlighting syntax on " Set color scheme colorscheme slate " Set font set guifont=Monaco\ 12 " Set tab settings set tabstop=4 set shiftwidth=4 set expandtab " Enable cursor line set cursorline " Enable auto-indentation set autoindent " Enable auto-completion set completeopt=menu,menuone,noselect " Map NERDTree to leader key + n nnoremap e :NERDTreeFocus nnoremap :NERDTree nnoremap :NERDTreeToggle nnoremap :NERDTreeFind " LSP settings let g:lsp_server_commands = ['clangd'] let g:lsp_auto_enable = 1 " Enable true color support set termguicolors set laststatus=2 set noshowmode if !has('gui_running') set t_Co=256 endif let g:airline#extensions#ale#enabled = 1 " AUTO INSTALL OF PLUG DEP ============================= let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' if empty(glob(data_dir . '/autoload/plug.vim')) silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif " PLUGINS ============================= call plug#begin('~/.vim/plugged') Plug 'scrooloose/nerdtree' " file tree Plug 'tpope/vim-fugitive' " Fugitive Vim Github Wrapper Plug 'vim-airline/vim-airline' " status line Plug 'jiangmiao/auto-pairs' " Auto-complete pairs Plug 'alvan/vim-closetag' " Auto-close HTML tags Plug 'prabirshrestha/vim-lsp' Plug 'dense-analysis/ale' call plug#end()