Advertisement
makinotori14

vimrc

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