Skip to content

Instantly share code, notes, and snippets.

@dbafromthecold
Last active October 31, 2022 14:25
Show Gist options
  • Save dbafromthecold/c614b4fe5a2208a203dea843090a220a to your computer and use it in GitHub Desktop.
Save dbafromthecold/c614b4fe5a2208a203dea843090a220a to your computer and use it in GitHub Desktop.
My vimrc file
"vim generic settings
set number
set nocompatible
set backspace=indent,eol,start
set nowrap
set nobackup
set noswapfile
set noundofile
"open terminal and NERDTree on start up
autocmd vimenter * below terminal
autocmd vimenter * NERDTree
"remove text from NERDTree UI
let NERDTreeMinimalUI=1
"syntax highlighting on
syntax on
"highlight line cursor is on
set cursorline
highlight CursorLine cterm=NONE ctermbg=0
"set default shell
set shell=pwsh\ -nologo
"shortcut to execute commands in terminal
noremap <C-;> Y<C-W>j<C-W>"0<C-W>k
"shortcut for switching between code and terminal
noremap <C-/> <C-w>j
tnoremap <C-/> <C-w>k
"set aliases
cabbrev bterm below term
cabbrev ntree NERDTree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment