Skip to content

Instantly share code, notes, and snippets.

@jda0
Created September 9, 2017 06:25
Show Gist options
  • Save jda0/30666bf1f397c078e9ae2bf381c967a7 to your computer and use it in GitHub Desktop.
Save jda0/30666bf1f397c078e9ae2bf381c967a7 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'edkolev/promptline.vim'
Plugin 'sjl/gundo.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-fugitive'
Plugin 'valloric/youcompleteme'
call vundle#end()
filetype plugin indent on
syntax enable
set laststatus=2
set tabstop=2
set softtabstop=2
set expandtab
set number
set cursorline
filetype indent on
set wildmenu
set lazyredraw
set showmatch
set incsearch
set hlsearch
nnoremap <leader><space> :nohlsearch<CR>
set foldenable
set foldlevelstart=10
set foldnestmax=10
set foldmethod=indent
nnoremap <space> za
nnoremap j gj
nnoremap k gk
nnoremap B ^
nnoremap E $
nnoremap ^ <nop>
nnoremap $ <nop>
nnoremap gV `[v`]
nnoremap <leader>u :GundoToggle<CR>
nnoremap <leader>s :mksession<CR>
let g:promptline_preset = {
\'a' : [ '\h' ],
\'b' : [ '\u' ],
\'c' : [ '\w' ]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment