···11-"set runtimepath^=~/.vim runtimepath+=~/.vim/after
22-"let &packpath=&runtimepath
33-"source ~/.vimrc
11+"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
22+"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
33+"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
44+if (empty($TMUX))
55+ if (has("nvim"))
66+ "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
77+ let $NVIM_TUI_ENABLE_TRUE_COLOR=1
88+ endif
99+ "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
1010+ "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
1111+ " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
1212+ if (has("termguicolors"))
1313+ set termguicolors
1414+ endif
1515+endif
1616+1717+1818+419520" Ignore files
621set wildignore+=*.pyc
···1328set ignorecase
1429set incsearch
15301616-syntax enable " Enables syntax highlighing
3131+syntax enable "done in onedark.vim Enables syntax highlighing
1732set smartcase
1833set conceallevel=0 " So that I can see `` in markdown files
1934set tabstop=2 " Insert 2 spaces for a tab
···3045set hidden " Required to keep multiple buffers open multiple buffers
31463247"general
3333-"colorscheme onedark
3448let mapleader = "\<Space>"
3549inoremap jk <ESC>
3650inoremap kj <Esc>
3751filetype plugin indent on
3838-set clipboard=unnamedplus " Copy paste between vim and everything else
5252+set clipboard=unnamedplus " Copy paste between vim and everything else -> inserts all into system clipboard
5353+noremap <Leader>ca ggVG"*y " Copy all in file to system clipboard
39544055set ruler " show the cursor position all the time
4156set showcmd " display incomplete commands
···4661set relativenumber
47624863" Easy CAPS
4949-inoremap <c-u> <ESC>viwUi
5050-nnoremap <c-u> viwU<Esc>
6464+"inoremap <c-u> <ESC>viwUi
6565+"nnoremap <c-u> viwU<Esc>
51665267" Alternate way to save
5368nnoremap <C-s> :w<CR>
···102117Plug 'vim-airline/vim-airline'
103118Plug 'joshdick/onedark.vim'
104119Plug 'sheerun/vim-polyglot'
120120+Plug 'gruvbox-community/gruvbox'
105121106122Plug 'christoomey/vim-system-copy'
107123"Plug 'valloric/youcompleteme'
···128144"cusotm stuff just for neovim
129145source $HOME/.config/nvim/themes/airline.vim
130146source $HOME/.config/nvim/themes/onedark.vim
147147+"syntax on
148148+""Gruvbox:
149149+"colorscheme gruvbox
150150+"set bg=dark
151151+""let g:gruvbox_contrast_dark = 'hard'
152152+131153132154au! BufWritePost $MYVIMRC source % " auto source when writing to init.vm alternatively you can run :source $MYVIMRC