Skip to content

Instantly share code, notes, and snippets.

@nonrice
Last active January 2, 2023 20:21
Show Gist options
  • Save nonrice/96046e3d77ed79f170cadfcfce1e42e5 to your computer and use it in GitHub Desktop.
Save nonrice/96046e3d77ed79f170cadfcfce1e42e5 to your computer and use it in GitHub Desktop.
My vimrc
filetype plugin indent on
autocmd filetype cpp nnoremap <F5> <Cmd>:w<CR>:!cprun.zsh %<CR>
autocmd filetype tex nnoremap <F5> <Cmd>:w<CR>:!xelatex % && open %<.pdf<CR>
autocmd filetype python nnoremap <F5> <Cmd>:w<CR>:!python3 % < ~/.in<CR>
nnoremap <F6> <Cmd>:w<CR>:e ~/.in<CR>
set tabstop=4 shiftwidth=4 softtabstop=4 autoindent expandtab
set backspace=2
set number relativenumber
call plug#begin()
Plug 'mattn/vim-lexiv'
Plug 'bfrg/vim-cpp-modern'
call plug#end()
set t_RV=0 t_Co=8
@nonrice
Copy link
Author

nonrice commented Oct 31, 2022

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