Skip to content

Instantly share code, notes, and snippets.

@JJL772
Last active December 16, 2019 08:37
Show Gist options
  • Save JJL772/4fde803fb974aee99f9afde3ba356f25 to your computer and use it in GitHub Desktop.
Save JJL772/4fde803fb974aee99f9afde3ba356f25 to your computer and use it in GitHub Desktop.
THIS IS MY VIMRC THAT I USE ALWAYS. IT MAKE VIM GOOD
set runtimepath+=~/.vim_runtime
set number
colorscheme monokai
let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
" All plugins will be in this folder
call plug#begin('~/.vim/bundle')
" YCM Plugin
Plug 'Valloric/YouCompleteMe', { 'do': './install.sh --clang-completer' }
call plug#end()
" Set tabs only, and have them be 4 wide
set autoindent noexpandtab tabstop=4 shiftwidth=4
" C = control
" A = alt
" S = shift
" e.g. <C-n> means control N
" <CR> means enter, so it's like doing :Command<enter>
map <C-n> :NERDTreeToggle<CR>
map <C-s> :w<CR>
map <A-Right> $
map <A-Left> 0
map <S-Left> gT
map <S-Right> gt
map <C-b><C-b> :tabnew<CR>
map <C-x><C-x> :q!<CR>
map <S-s> :vs<CR>
map <S-h> :split<CR>
map <C-e> :E<CR>
" SUMMARY of le KEYBINDS
" shift-left/shift-right navigates open tabs
" ctrl-b ctrl+b to open a new tab
" ctrl-e to open the integrated file browser, or ctrl-n to open NERDTree (which is better in most cases)
" alt-left/right will go to the beginning/end of the line respectively
" ctrl-x ctrl-x (do it twice) does a force quit (MAKE SURE TO SAVE UR STUFF)
" ctrl-s saves everything
" shift-s does a vertical split
" shift-h does a horizontal split
" ctrl-w switches between the open buffers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment