Advertisement
makinotori14

makinotori14's vimrc

Jun 20th, 2023
2,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.72 KB | None | 0 0
  1. "Init settings
  2. filetype plugin indent on
  3. set encoding=utf-8
  4. set nocompatible
  5. syntax enable
  6.  
  7. "vim-plug
  8. call plug#begin()
  9.  
  10. Plug 'morhetz/gruvbox'
  11.  
  12. Plug 'itchyny/lightline.vim'
  13.  
  14. Plug 'preservim/nerdtree'
  15.  
  16. Plug 'sirver/ultisnips'
  17. let g:UltiSnipsExpandTrigger = '<tab>'
  18. let g:UltiSnipsJumpForwardTrigger = '<tab>'
  19. let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
  20.  
  21. Plug 'jiangmiao/auto-pairs'
  22.  
  23. call plug#end()
  24.  
  25. "Lightline plugin
  26. set laststatus=2
  27. set noshowmode
  28.  
  29. "Appearance
  30. autocmd vimenter * ++nested colorscheme gruvbox
  31. set background=dark
  32. set guifont=SourceCodePro\ 19
  33. set cursorline
  34. set wrap linebreak nolist
  35.  
  36. "General
  37. set number relativenumber
  38. set foldcolumn=1
  39. set autoindent
  40. set autoread
  41. set cin
  42. set expandtab
  43. set history=1000
  44. set hlsearch
  45. set ignorecase
  46. set incsearch
  47. set mousehide
  48. set noerrorbells
  49. set noswapfile
  50. set pastetoggle=
  51. set shiftwidth=2
  52. set smarttab
  53. set tabstop=2
  54.  
  55. "cpp
  56. noremap <F9> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -Wconversion -DLOCAL -D_GLIBCXX_DEBUG -O2 -o %< % && ./%< < inp >& out <CR>
  57.  
  58. "disable arrows
  59. cnoremap <Down> <Nop>
  60. cnoremap <Left> <Nop>
  61. cnoremap <Right> <Nop>
  62. cnoremap <Up> <Nop>
  63. inoremap <Down> <Nop>
  64. inoremap <Left> <Nop>
  65. inoremap <Right> <Nop>
  66. inoremap <Up> <Nop>
  67. nnoremap <Down> <Nop>
  68. nnoremap <Left> <Nop>
  69. nnoremap <Right> <Nop>
  70. nnoremap <Up> <Nop>
  71. vnoremap <Down> <Nop>
  72. vnoremap <Left> <Nop>
  73. vnoremap <Right> <Nop>
  74. vnoremap <Up> <Nop>
  75.  
  76. "tabs
  77. noremap <Left> :tabprevious <CR>
  78. noremap <Right> :tabnext <CR>
  79.  
  80. "GVIM
  81. set guioptions-=m  "remove menu bar
  82. set guioptions-=T  "remove toolbar
  83. set guioptions-=r  "remove right-hand scroll bar
  84. set guioptions-=L  "remove left-hand scroll bar
  85. set lines=999 columns=999
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement