Skip to content

Instantly share code, notes, and snippets.

Last active Jan 13, 2022
What would you like to do?
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