syntax on set nocp set number set tabstop=2 softtabstop=2 set shiftwidth=2 set noswapfile set smartindent set expandtab set encoding=utf-8 set wrap " Map leader key to Space let mapleader = " " let g:closetag_filenames = '*.html,*.svelte' call plug#begin('~/.vim/plugged') " Gruvbox theme Plug 'morhetz/gruvbox' " Packages for JavaScript/TypeScript and Go Plug 'pangloss/vim-javascript' Plug 'leafgarland/typescript-vim' Plug 'fatih/vim-go' " Nerdtree for file tree " Use Ctrl+B to toggle it Plug 'scrooloose/nerdtree' " Completion engine Plug 'valloric/youcompleteme' " Package for opening files with Ctrl+P Plug 'kien/ctrlp.vim' " Git wrapper Plug 'tpope/vim-fugitive' " While in Visual mode, select the code and press 'gc' keys to " comment/uncomment it Plug 'tpope/vim-commentary' " HTML plugins Plug 'mattn/emmet-vim' Plug 'alvan/vim-closetag' " Svelte plugin Plug 'evanleck/vim-svelte' Plug 'ap/vim-css-color' call plug#end() " Theme colorscheme gruvbox set background=dark " NerdTree remap to toggle it nmap :NERDTreeToggle " Remap to open CtrlP menu nmap :CtrlP " Remaps to switching between panes with Ctrl+j/k/h/l map j map k map h map l " Remap to quickly quit Vim on Ctrl+Q nmap q :q " Remap to save file with Ctrl+S nmap w :w " Remaps to move line under the cursor down and up nnoremap :m .+1== nnoremap :m .-2==