Last active
December 29, 2017 07:11
-
-
Save jeremejazz/aecdf132a8f8d750fa49086d67fa8917 to your computer and use it in GitHub Desktop.
My Personal Vim Configuration file
This file contains 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 characters
" Jereme's Vim configuration | |
" Install vim-plug | |
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" then run :PlugInstall | |
set nocompatible " required | |
set splitbelow | |
set splitright | |
set foldmethod=indent | |
set foldlevel=99 | |
set number | |
filetype off " required | |
" Prevent swp files from getting in the way | |
set directory=~/.vim/swapfiles | |
" set the runtime path to include Vundle and initialize | |
call plug#begin('~/.vim/plugged') | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plug 'fatih/vim-go' | |
Plug 'gmarik/Vundle.vim' | |
Plug 'JamshedVesuna/vim-markdown-preview' | |
Plug 'mattn/emmet-vim' | |
Plug 'mhartington/oceanic-next' | |
Plug 'scrooloose/nerdtree' | |
Plug 'severin-lemaignan/vim-minimap' | |
Plug 'tpope/vim-fugitive' | |
function! BuildYCM(info) | |
if a:info.status == 'installed' || a:info.force | |
!./install.sh | |
endif | |
endfunction | |
Plug 'Valloric/YouCompleteMe', { 'do': function('BuildYCM') } | |
Plug 'vim-airline/vim-airline' | |
Plug 'airblade/vim-gitgutter' | |
" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin) | |
" All of your Plugins must be added before the following line | |
call plug#end() " required | |
filetype plugin indent on " required | |
" This disrupts some default key such as C-H (backspace) use only when needed | |
" nnoremap <C-J> <C-W><C-J> | |
" nnoremap <C-K> <C-W><C-K> | |
" nnoremap <C-L> <C-W><C-L> | |
" nnoremap <C-H> <C-W><C-H> | |
" set code folding | |
nnoremap <space> za | |
map <C-n> :NERDTreeToggle<CR> | |
syntax enable | |
" For compatibility of OceanNext | |
set t_Co=256 | |
" for vim 8 | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
colorscheme OceanicNext | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment