improvements

This commit is contained in:
Tine Jozelj 2021-03-21 16:09:03 +01:00
parent f85cc72d08
commit 41d69ec335

View file

@ -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 <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
nnoremap <leader>f 1z= " fix spelling
"- Keybindings
let mapleader = "'"
let g:ctrlp_map = '<c-p>'
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'