Last active
September 5, 2019 01:36
Revisions
-
harish-r revised this gist
Sep 5, 2019 . 1 changed file with 58 additions and 23 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,45 +1,80 @@ " ################## Vim Plug Begin ################## call plug#begin('~/.vim/plugged') Plug 'dracula/vim', { 'as': 'dracula' } Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'scrooloose/nerdtree' call plug#end() " ################## Vim Plug End #################### " ################## Vim Settings Begin #################### set encoding=utf-8 set laststatus=2 syntax on set modelines=0 set wrap set formatoptions=tcqrn1 set tabstop=2 set shiftwidth=2 set softtabstop=2 set expandtab set noshiftround set scrolloff=5 set number set list set mouse=ai set smartcase set ignorecase set backspace=indent,eol,start set title " Color scheme colorscheme onedark " Airline Settings let g:airline_theme='simple' " #################### Vim Settings End #################### " #################### RipGrep and FZF Begin #################### " FZF.vim now supports this command out of the box " so this code is no longer needed. command! -bang -nargs=* Rg \ call fzf#vim#grep( \ 'rg --column --line-number --hidden --ignore-case --no-heading --color=always '.shellescape(<q-args>), 1, \ <bang>0 ? fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'up:60%') \ : fzf#vim#with_preview({'options': '--delimiter : --nth 4..'}, 'right:50%:hidden', '?'), \ <bang>0) nnoremap <C-p> :Files<Cr> " nnoremap <C-g> :Rg<Cr> " #################### RipGrep and FZF End #################### " #################### Cscope Begin #################### nmap <unique> <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR> nmap <unique> <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR> nmap <unique> <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space>s :scs find s <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space>g :scs find g <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space>c :scs find c <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space>t :scs find t <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space>e :scs find e <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space>f :scs find f <C-R>=expand("<cfile>")<CR><CR> nmap <unique> <C-Space>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR> nmap <unique> <C-Space>d :scs find d <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space><C-Space>s :vert scs find s <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space><C-Space>g :vert scs find g <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space><C-Space>c :vert scs find c <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space><C-Space>t :vert scs find t <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space><C-Space>e :vert scs find e <C-R>=expand("<cword>")<CR><CR> nmap <unique> <C-Space><C-Space>f :vert scs find f <C-R>=expand("<cfile>")<CR><CR> nmap <unique> <C-Space><C-Space>i :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR> nmap <unique> <C-Space><C-Space>d :vert scs find d <C-R>=expand("<cword>")<CR><CR> "################## Cscope End ##################" -
harish-r created this gist
Jul 10, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ " Plug plugins installation call plug#begin('~/.vim/plugged') Plug 'dracula/vim', { 'as': 'dracula' } Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' call plug#end() set encoding=utf-8 set laststatus=2 "syntax on " Color Schemes colorscheme onedark set t_ut= " Airline Settings let g:airline_theme='simple' " let g:airline_powerline_fonts = 1 ""t termguicolors set modelines=0 set wrap set formatoptions=tcqrn1 set tabstop=2 set shiftwidth=2 set softtabstop=2 set expandtab set noshiftround set scrolloff=5 set number set list set mouse=a if (empty($TMUX)) if (has("nvim")) let $NVIM_TUI_ENABLE_TRUE_COLOR=1 endif if (has("termguicolors")) set termguicolors endif endif