Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Init settings
- filetype plugin indent on
- set encoding=utf-8
- set nocompatible
- syntax enable
- "vim-plug
- call plug#begin()
- Plug 'morhetz/gruvbox'
- Plug 'itchyny/lightline.vim'
- Plug 'preservim/nerdtree'
- Plug 'sirver/ultisnips'
- let g:UltiSnipsExpandTrigger = '<tab>'
- let g:UltiSnipsJumpForwardTrigger = '<tab>'
- let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
- Plug 'jiangmiao/auto-pairs'
- call plug#end()
- "Lightline plugin
- set laststatus=2
- set noshowmode
- "Appearance
- autocmd vimenter * ++nested colorscheme gruvbox
- set background=dark
- set guifont=SourceCodePro\ 19
- set cursorline
- set wrap linebreak nolist
- "General
- set number relativenumber
- set foldcolumn=1
- set autoindent
- set autoread
- set cin
- set expandtab
- set history=1000
- set hlsearch
- set ignorecase
- set incsearch
- set mousehide
- set noerrorbells
- set noswapfile
- set pastetoggle=
- set shiftwidth=2
- set smarttab
- set tabstop=2
- "cpp
- noremap <F9> <ESC> :w <CR> :!g++ -fsanitize=address -std=c++17 -Wall -Wextra -Wshadow -Wconversion -DLOCAL -D_GLIBCXX_DEBUG -O2 -o %< % && ./%< < inp >& out <CR>
- "disable arrows
- cnoremap <Down> <Nop>
- cnoremap <Left> <Nop>
- cnoremap <Right> <Nop>
- cnoremap <Up> <Nop>
- inoremap <Down> <Nop>
- inoremap <Left> <Nop>
- inoremap <Right> <Nop>
- inoremap <Up> <Nop>
- nnoremap <Down> <Nop>
- nnoremap <Left> <Nop>
- nnoremap <Right> <Nop>
- nnoremap <Up> <Nop>
- vnoremap <Down> <Nop>
- vnoremap <Left> <Nop>
- vnoremap <Right> <Nop>
- vnoremap <Up> <Nop>
- "tabs
- noremap <Left> :tabprevious <CR>
- noremap <Right> :tabnext <CR>
- "GVIM
- set guioptions-=m "remove menu bar
- set guioptions-=T "remove toolbar
- set guioptions-=r "remove right-hand scroll bar
- set guioptions-=L "remove left-hand scroll bar
- set lines=999 columns=999
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement