Skip to content

Instantly share code, notes, and snippets.

@cjds
Last active June 26, 2019 04:43
Show Gist options
  • Save cjds/dcdd840f43e541f0ccc42487b08813b1 to your computer and use it in GitHub Desktop.
Save cjds/dcdd840f43e541f0ccc42487b08813b1 to your computer and use it in GitHub Desktop.
My Vimrc. To Use Launch vim and run :PluginInstall
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
Plugin 'tpope/vim-fugitive'
Plugin 'rafi/awesome-vim-colorschemes'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'kien/ctrlp.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-scripts/grep.vim'
Plugin 'fatih/vim-go'
Plugin 'wojtekmach/vim-rename'
Plugin 'easymotion/vim-easymotion'
Plugin 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " require
syntax on
colorscheme deep-space
set number
"Airline setup
let g:airline#extensions#tabline#enabled = 1
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': ['<2-LeftMouse>'],
\ 'AcceptSelection("t")': ['<cr>'],
\ }
nmap <silent> <C-Up> :cp<CR>zv
nmap <silent> <C-Down> :cn<CR>zv
nmap <silent> <C-L> :ccl<CR>zv
tnoremap <Esc> <C-\><C-n><CR>
nmap <C-1> :Grep -i -r <CR>
cabbr <expr> %% expand('%:p:h')
set mouse =a
set undofile " Save undos after file closes
set undodir=$HOME/.vim/undo " where to save undo histories
set undolevels=1000 " How many undos
set undoreload=10000
map <C-S> :mksession! $HOME/.vim/vim_session <cr> " Quick write session with F2
map <C-O> :source $HOME/.vim/vim_session <cr> " And load session with F3
let g:deoplete#enable_at_startup = 1
" Set the ruler colors
highlight LineNr ctermbg=233
highlight LineNr ctermfg=221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment