diff --git a/.vimrc b/.vimrc index 0f6921e..9a6a7da 100644 --- a/.vimrc +++ b/.vimrc @@ -1,5 +1,7 @@ syntax on +set nocp + set number set tabstop=2 softtabstop=2 @@ -9,16 +11,62 @@ set smartindent set expandtab set encoding=utf-8 set wrap +set autochdir -set colorcolumn=80 +" Remap to use Alt+Q to quit panel or vim +nmap :q 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' 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 + +" Remap to save file with Ctrl+S +nmap :w + +" Remaps to move line under the cursor down and up +nnoremap :m .+1== +nnoremap :m .-2==