Last active
June 17, 2020 11:27
-
-
Save priyanshu219/85441899a09c187912455fec25935007 to your computer and use it in GitHub Desktop.
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
# first do :w for save | |
# then :source % to activate the changes | |
# leader is space | |
syntax on | |
set noerrorbells | |
set tabstop=4 softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smartindent | |
set nu | |
set nowrap | |
set smartcase | |
set noswapfile | |
set nobackup | |
set undodir=~/.vim/undodir | |
set undofile | |
set incsearch | |
set colorcolumn=80 | |
highlight ColorColumn ctermbg=0 guibg=lightgrey | |
call plug#begin('~/.vim/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'jremmen/vim-ripgrep' | |
Plug 'tpope/vim-fugitive' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'vim-utils/vim-man' | |
Plug 'lyuts/vim-rtags' | |
Plug '[email protected]:kien/ctrlp.vim.git' | |
Plug '[email protected]:Valloric/YouCompleteMe.git' | |
Plug 'mbbill/undotree' | |
call plug#end() | |
# do :w + :source % | |
# After that do PlugInstall | |
# to get out of the patition use :q in that partiotion | |
colorscheme gruvbox | |
set background=dark | |
if executable('rg') | |
let g:rg_derive_root='true' | |
endif | |
let g:ctrlp_user_commad = ['./git', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] | |
let mapleader = " " | |
let g:netrw_browse_split=2 | |
let g:netrw_banner = 0 | |
let g:netrw_winsize = 25 | |
let g:ycm_semantic_triggers = { 'cpp' : ['_'] } | |
let g:ycm_semantic_triggers = { | |
\ 'cpp' : ['re!\w{2}'] | |
\} | |
let g:ctrlp_use_caching = 0 | |
nnoremap <leader>h :wincmd h<CR> | |
nnoremap <leader>j :wincmd j<CR> | |
nnoremap <leader>k :wincmd k<CR> | |
nnoremap <leader>l :wincmd l<CR> | |
nnoremap <leader>u :UndotreeShow<CR> | |
nnoremap <leader>pv :wincmd v<bar> :Ex <bar> :vertical resize 30<CR> | |
nnoremap <Leader>ps :Rg<SPACE> | |
nnoremap <silent> <Leader>+ :vertical resize +5<CR> | |
nnoremap <silent> <Leader>- :vertical resize -5<CR> | |
nnoremap <silent> <Leader>gd :YcmCompleter GoTo<CR> | |
nnoremap <silent> <Leader>gf :YcmCompleter FixIt<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment