Advertisement
Kevin_Zhang

vimrc

Oct 8th, 2021
2,899
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.43 KB | None | 0 0
  1. set nu rnu cin ts=4 sw=4 autoread
  2. sy on
  3. map<F4> :%d<bar>0pu+<bar>w<CR>
  4. map<F6> :w<bar>!g++ -std=c++20 -DKEV -fsanitize=undefined -o run '%' grader.cpp<CR>
  5. map<F7> :w<bar>!g++ -std=c++20 -DKEV -fsanitize=undefined -o run '%'<CR>
  6. map<F8> :w<bar>!cat 01.in && echo "-------------" && ./run < 01.in<CR>
  7. map<F9> :!./run <CR>
  8. map<C-p> I//<ESC>
  9. map<leader>y :%y+<CR>
  10.  
  11. map<leader>b <F7>
  12. map<leader>r <F8>
  13. map<leader>l :%d<bar>|0r t<CR>
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement