diff --git a/vim/vimrc b/vim/vimrc index 2430610..a87fdb6 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,5 +1,5 @@ " Install vim-plug if not found -if empty(glob('~/.vim/autoload/plug.vim')) +if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim endif @@ -77,16 +77,32 @@ if exists('##TextYankPost') augroup END endif "--- VIM Configuration + +"- Custom commands command! -nargs=0 Prettier :CocCommand prettier.formatFile +"- NERDTree +nnoremap n :NERDTreeFocus +nnoremap :NERDTree +nnoremap :NERDTreeToggle +nnoremap :NERDTreeFind +nnoremap f 1z= " fix spelling + "- Keybindings +let mapleader = "'" + let g:ctrlp_map = '' let g:ctrlp_cmd = 'CtrlP' "- Visuals set number set cursorline -set signcolumn=yes +set noswapfile +set hlsearch " highlight all results +set ignorecase +set incsearch " search as you type +set signcolumn=yes " always show git diff collumn +set spell spelllang=en_us colorscheme onehalflight let g:airline_theme = 'onehalflight'