Vim - sjherrick/code-base GitHub Wiki

.vimrc

set nocompatible              " be iMproved, 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 'VundleVim/Vundle.vim'

" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
" https://benmccormick.org/2014/07/21/learning-vim-in-2014-getting-more-from-vim-with-plugins
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-repeat'
Plugin 'kana/vim-textobj-user'
Plugin 'kana/vim-textobj-indent'
Plugin 'kien/ctrlp.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'jisaacks/GitGutter'
Plugin 'Raimondi/delimitMate'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"

" Basic Setup
set nocompatible

" enable syntax and plugins (for netrw)
syntax enable
filetype plugin on
set relativenumber

" trying this to autoclose brackets n shit
inoremap {<CR> {<CR>}<Esc>ko<tab>
inoremap [<CR> [<CR>]<Esc>ko<tab>
inoremap (<CR> (<CR>)<Esc>ko<tab>
""""""""""""""""""""""
" How to do 90% of What Plugins Do (With Just Vim) Youtube
""""""""""""""""""""""

" FINDING FILES:

" Search down into subfolders
" Provides tab-completion for all file-related tasks
set path+=**

" Display all matching files when we tab complete
set wildmenu

" TAG JUMPING:
"
" Create the 'tags' file
command! MakeTags !ctags -R .

""""""""""""""""""""""
" Line
""""""""""""""""""""""
" show line numbers
set number

""""""""""""""""""""""
" Indents
""""""""""""""""""""""
" replace tabs with spaces
set expandtab
" 1 tab = 2 spaces
set tabstop=4 shiftwidth=4

" when deleting whitespace at the beginning of a line, delete
" 1 tab worth of spaces
set smarttab

" when creating a new line, copy the indentation from the line above
set autoindent

""""""""""""""""""""""
" Search
""""""""""""""""""""""
" Ignore case when searching
set ignorecase
set smartcase

" highlight search results
set hlsearch

"highlight all pattern matches
set incsearch

""""""""""""""""""""""
" Mix
""""""""""""""""""""""
" show the matching brackets
set showmatch

"highlight the current line
set cursorline

" make backspace work
set backspace=indent,eol,start

Scriptnames

 1: /usr/share/vim/vimrc
  2: /usr/share/vim/vim82/debian.vim
  3: /usr/share/vim/vim82/syntax/syntax.vim
  4: /usr/share/vim/vim82/syntax/synload.vim
  5: /usr/share/vim/vim82/syntax/syncolor.vim
  6: /usr/share/vim/vim82/filetype.vim
  7: ~/.vimrc
  8: /usr/share/vim/vim82/ftoff.vim
  9: ~/.vim/bundle/Vundle.vim/autoload/vundle.vim
 10: ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
 11: ~/.vim/bundle/vim-fugitive/ftdetect/fugitive.vim
 12: /usr/share/vim/vim82/ftplugin.vim
 13: /usr/share/vim/vim82/indent.vim
 14: /usr/share/vim/vim82/syntax/nosyntax.vim
 15: ~/.vim/bundle/vim-fugitive/plugin/fugitive.vim
 16: ~/.vim/bundle/vim-surround/plugin/surround.vim
 17: ~/.vim/bundle/vim-commentary/plugin/commentary.vim
 18: ~/.vim/bundle/vim-textobj-indent/plugin/textobj/indent.vim
 19: ~/.vim/bundle/vim-textobj-user/autoload/textobj/user.vim
 20: ~/.vim/bundle/ctrlp.vim/plugin/ctrlp.vim
 21: ~/.vim/bundle/ctrlp.vim/autoload/ctrlp/mrufiles.vim
 22: ~/.vim/bundle/YouCompleteMe/plugin/youcompleteme.vim
 23: ~/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim
 24: ~/.vim/bundle/syntastic/plugin/syntastic/balloons.vim
 25: ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
 26: ~/.vim/bundle/syntastic/plugin/syntastic/cursor.vim
 27: ~/.vim/bundle/syntastic/plugin/syntastic/highlighting.vim
 28: ~/.vim/bundle/syntastic/plugin/syntastic/loclist.vim
 29: ~/.vim/bundle/syntastic/plugin/syntastic/modemap.vim
 30: ~/.vim/bundle/syntastic/plugin/syntastic/notifiers.vim
 31: ~/.vim/bundle/syntastic/plugin/syntastic/registry.vim
 32: ~/.vim/bundle/syntastic/plugin/syntastic/signs.vim
 33: ~/.vim/bundle/syntastic/plugin/syntastic.vim
 34: ~/.vim/bundle/syntastic/autoload/syntastic/util.vim
 35: ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
 36: ~/.vim/bundle/delimitMate/autoload/delimitMate.vim
 37: /usr/share/vim/vim82/plugin/getscriptPlugin.vim
 38: /usr/share/vim/vim82/plugin/gzip.vim
 39: /usr/share/vim/vim82/plugin/logiPat.vim
 40: /usr/share/vim/vim82/plugin/manpager.vim
 41: /usr/share/vim/vim82/plugin/matchparen.vim
 42: /usr/share/vim/vim82/plugin/netrwPlugin.vim
 43: /usr/share/vim/vim82/plugin/rrhelper.vim
 44: /usr/share/vim/vim82/plugin/spellfile.vim
 45: /usr/share/vim/vim82/plugin/tarPlugin.vim
 46: /usr/share/vim/vim82/plugin/tohtml.vim
 47: /usr/share/vim/vim82/plugin/vimballPlugin.vim
 48: /usr/share/vim/vim82/plugin/zipPlugin.vim
 49: ~/.vim/bundle/syntastic/autoload/syntastic/log.vim
 50: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
⚠️ **GitHub.com Fallback** ⚠️