Skip to content

Instantly share code, notes, and snippets.

@andybp85
Last active January 17, 2023 18:02
Show Gist options
  • Save andybp85/e5075c69d45c6d8d012ea89199935ea6 to your computer and use it in GitHub Desktop.
Save andybp85/e5075c69d45c6d8d012ea89199935ea6 to your computer and use it in GitHub Desktop.
vim config 2023. needs vim-plug
syntax on
set nocompatible
set encoding=utf-8
set ffs=unix,dos,mac
set number
set relativenumber
set ruler
set tabstop=4
set shiftwidth=4
set expandtab
set cursorline
hi CursorLine term=bold cterm=bold guibg=Grey40
set lazyredraw
set backspace=indent,eol,start
set copyindent
set shiftround
set showmatch
set smartcase
set hlsearch
set incsearch
set modelines=1
set showcmd
set ttimeout
set timeoutlen=1000 ttimeoutlen=0
set mouse=a
set wildmode=longest:full
set wildmenu
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
set backup
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set backupskip=/tmp/*,/private/tmp/*
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set writebackup
set conceallevel=1
let mapleader=" "
cnoreabbrev W w
cnoreabbrev Q q
cnoreabbrev Wq wq
cnoreabbrev WQ wq
nmap <leader>w :w!<cr>
nmap <leader>q :q<cr>
nmap <leader>wa :wa<cr>
nmap <leader>wq :wq<cr>
nmap <leader>qa :qa<cr>
nmap <leader>wqa :wqa<cr>
set rtp+=/opt/homebrew/opt/fzf
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'arcticicestudio/nord-vim'
Plug 'leafgarland/typescript-vim'
Plug 'kien/rainbow_parentheses.vim'
Plug 'bling/vim-airline'
Plug 'elzr/vim-json'
Plug 'iamcco/coc-angular'
Plug 'Valloric/YouCompleteMe'
call plug#end()
colorscheme nord
@andybp85
Copy link
Author

andybp85 commented Jan 17, 2023

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment