Created
          April 30, 2022 16:18 
        
      - 
      
 - 
        
Save SumirVats2003/519e4f2adb4a0663fbd9981f17b897df to your computer and use it in GitHub Desktop.  
    My linux vimrc 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | call plug#begin('~/.vim/plugged') | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' | |
| Plug 'mhinz/vim-startify' | |
| Plug 'yunlingz/ci_dark' | |
| Plug 'luochen1990/rainbow' | |
| Plug 'preservim/nerdtree' | |
| Plug 'ryanoasis/vim-devicons' | |
| call plug#end() | |
| map <c-x> :Startify<CR> | |
| map <c-n> :NERDTree<CR> | |
| map <c-l> :vertical resize +5<CR> | |
| map <c-h> :vertical resize -5<CR> | |
| map <c-k> :res +5<CR> | |
| map <c-j> :res -5<CR> | |
| let g:startify_custom_header = [ | |
| \ '', | |
| \ ' .___', | |
| \ ' ____ ____ __| _/____', | |
| \ ' / ___\/ _ \ / __ |/ __ \', | |
| \ ' \ \__( <_> )/ /_/ \ ___/', | |
| \ ' \___ >____/\____ |\___ >', | |
| \ ' \/ \/ \/', | |
| \ '', | |
| \ ] | |
| let g:startify_fortune_use_unicode = 1 | |
| let g:startify_bookmarks = [ | |
| \ { 'v': '~/.vimrc' }, | |
| \ ] | |
| let g:airline_powerline_fonts = 1 | |
| let g:airline_theme='behelit' | |
| colorscheme kiss | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set nu rnu | |
| " set cursorline | |
| set noerrorbells | |
| set clipboard=unnamed | |
| syntax on | |
| set ruler | |
| set autoindent | |
| set showcmd | |
| set wildmenu | |
| set termguicolors | |
| set encoding=utf8 | |
| augroup compileandrun | |
| autocmd! | |
| autocmd filetype python nnoremap <f5> :w <bar> :!python3 % <cr> | |
| autocmd filetype cpp nnoremap <c-z> :w <bar> exec '!g++ '.shellescape('%').' -o '.shellescape('%:r').' && ./'.shellescape('%:r')<CR> | |
| autocmd filetype c nnoremap <c-z> :w <bar> exec '!gcc '.shellescape('%').' -o '.shellescape('%:r').' && ./'.shellescape('%:r')<CR> | |
| autocmd filetype java nnoremap <c-z> :w <bar> !javac % && java %:r <cr> | |
| autocmd filetype cpp nnoremap <c-b> i#include<bits/stdc++.h><cr>#define ll long long<cr>using namespace std;<cr><cr>int main() {<cr>int t;<cr>cin>>t;<cr>while(t--){<cr>}<cr>return 0;<cr>}<esc>kkO<esc>:w<cr> | |
| augroup END | |
| hi TabLine ctermfg=Black ctermbg=Green cterm=NONE | |
| hi TabLineFill ctermfg=Black ctermbg=Green cterm=NONE | |
| hi TabLineSel ctermfg=White ctermbg=DarkBlue cterm=NONE | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment