From 41d69ec33568d84472bacbf4ab3fa574607c36e3 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Sun, 21 Mar 2021 16:09:03 +0100 Subject: [PATCH] improvements --- vim/vimrc | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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'