Advertisement
clown1337

vimrc

Feb 22nd, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. colorscheme jellybeans
  2. "colo desert
  3. "colo darkblue
  4.  
  5.  
  6. "set exrc
  7.  
  8.  
  9. noremap <F1> <ESC>:tabprev <CR>
  10. vnoremap <F1> <ESC>:tabprev <CR>
  11. inoremap <F1> <ESC>
  12.  
  13. noremap <F3> <ESC> :w <CR> :make <CR>
  14. inoremap <F3> <ESC> :w <CR> :make <CR>
  15.  
  16. "noremap <F4> <ESC> :w <CR> :!pycodestyle %<.py <CR>
  17. "inoremap <F4> <ESC> :w <CR> :!pycodestyle %<.py <CR>
  18.  
  19. "noremap <F5> <ESC> :w <CR> :!pytest %<.py <CR>
  20. "inoremap <F5> <ESC> :w <CR> :!pytest %<.py <CR>
  21.  
  22. "noremap <F6> <ESC> :!./%< < inp<CR>
  23. "inoremap <F6> <ESC> :!./%< < inp<CR>
  24.  
  25. noremap <F7> <ESC> :w !python3 <CR>
  26.  
  27. "noremap <F7> <ESC> :w <CR> :!avr-gcc -g -std=c99 -O1 -mmcu=atmega328p -o out.elf example.c<CR>
  28. "noremap <F6> <ESC> :w <CR> :!avrdude -v -patmega328p -P /dev/cu.usbmodem14* -c arduino -U flash:w:"out.elf"<CR>
  29. "noremap <F5> <ESC> :w <CR> :!avrdude -v -patmega328p -P /dev/cu.usbmodemHID* -c arduino -U flash:w:"out.elf"<CR>
  30.  
  31.  
  32. noremap <F8> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -DONPC -O2 -o %< % && ./%< < inp<CR>
  33. inoremap <F8> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -DONPC -O2 -o "%<" "%" && "./%<" < inp<CR>
  34.  
  35. " -pthread
  36.  
  37. noremap <F9> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o %< % && ./%< <CR>
  38. inoremap <F9> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o %< % && ./%< <CR>
  39.  
  40. "noremap <F10> <ESC> :w <CR> :!clang++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o %< % && ./%< <CR>
  41. "inoremap <F10> <ESC> :w <CR> :!clang++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o %< % && ./%< <CR>
  42.  
  43.  
  44. noremap <F10> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o %< % && ./%< < inp<CR>
  45. inoremap <F10> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -DONPC -O2 -o "%<" "%" && "./%<" < inp<CR>
  46.  
  47.  
  48.  
  49. "inoremap {<CR> {<CR>}<ESC>k$A<CR>
  50.  
  51. noremap <TAB> %
  52.  
  53.  
  54. call plug#begin('~/.vim/plugged')
  55.  
  56.  
  57. Plug 'lervag/vimtex'
  58. let g:tex_flavor='latex'
  59. let g:vimtex_view_method='general'
  60. let g:vimtex_quickfix_mode=0
  61. set conceallevel=1
  62. let g:tex_conceal='abdmg'
  63.  
  64. Plug 'sirver/ultisnips'
  65. let g:UltiSnipsExpandTrigger = '<tab>'
  66. let g:UltiSnipsJumpForwardTrigger = '<tab>'
  67. let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
  68. "let g:UltiSnipsJumpForwardTrigger="<c-b>"
  69. "let g:UltiSnipsJumpBackwardTrigger="<c-z>"
  70. "let g:UltiSnipsEditSplit="vertical"
  71.  
  72. Plug 'honza/vim-snippets'
  73.  
  74. "Plug 'gilligan/vim-lldb'
  75.  
  76. call plug#end()
  77.  
  78. set autoindent
  79. set autoread
  80. set cin
  81. set expandtab
  82. set guifont=Menlo\ Regular:h16
  83. set history=1000
  84. set hlsearch
  85. set ignorecase
  86. set incsearch
  87. set mousehide
  88. set noerrorbells
  89. set noswapfile
  90. set number
  91. set pastetoggle=
  92. set shiftwidth=4
  93. set smarttab
  94. set tabstop=4
  95. set vb t_vb=
  96. set relativenumber
  97.  
  98.  
  99. let c_syntax_for_h=""
  100.  
  101. let g:netrw_keepdir = 0
  102.  
  103. let g:netrw_localrmdir='rm -r'
  104. syntax on
  105.  
  106. set shellslash
  107. filetype indent on
  108. let g:tex_flavor='latex'
  109. set sw=4
  110. set iskeyword+=:
  111.  
  112. ":PlugInstall
  113.  
  114. "g:Tex_CompileRule_pdf
  115. "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement