Skip to content

Instantly share code, notes, and snippets.

@osdrv
Created June 19, 2016 17:21
Show Gist options
  • Save osdrv/110b14406d9f70a2466306342ff12fec to your computer and use it in GitHub Desktop.
Save osdrv/110b14406d9f70a2466306342ff12fec to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " " alternatively, pass a path where Vundle should install bundles
" " "let path = '~/some/path/here'
" " "call vundle#rc(path)
" "
" " let Vundle manage Vundle, required
Plugin 'gmarik/vundle'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Kazark/vim-SimpleSmoothScroll'
Plugin 'tpope/vim-fugitive'
Plugin 'bling/vim-airline'
Plugin 'kien/ctrlp.vim'
Plugin 'Shougo/unite.vim'
Plugin 'majutsushi/tagbar'
Plugin 'chrisbra/csv.vim'
Plugin 'scrooloose/syntastic'
Plugin 'edkolev/promptline.vim'
Plugin 'Shougo/neocomplcache'
Plugin 'carlhuda/janus'
Plugin 'rstacruz/sparkup'
Plugin 'morhetz/gruvbox'
Plugin 'changyuheng/color-scheme-holokai-for-vim'
call vundle#end()
filetype plugin indent on
syntax on " Syntax highlighting
set background=dark " Terminal with a dark background
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_smart_case = 1
let g:neocomplcache_enable_camel_case_completion = 1
let g:neocomplcache_enable_underbar_completion = 1
let g:neocomplcache_min_syntax_length = 3
inoremap <expr><C-g> neocomplcache#undo_completion()
inoremap <expr><C-l> neocomplcache#complete_common_string()
inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-y> neocomplcache#close_popup()
inoremap <expr><C-e> neocomplcache#cancel_popup()
if !exists('g:neocomplcache_omni_patterns')
let g:neocomplcache_omni_patterns = {}
endif
set laststatus=2
set t_Co=256
colorscheme holokai " Color scheme
set expandtab " Make a tab to spaces, num of spaces set in tabstop
set shiftwidth=4 " Number of spaces to use for autoindenting
set tabstop=4 " A tab is four spaces
set smarttab " insert tabs at the start of a line according to
set list " show invisible characters
set listchars=tab:>·,trail:· " but only show tabs and trailing whitespace
set number " Enable line numbers
set numberwidth=3 " Line number width
" Set f2 to toggle line numbers
nmap <f2> :set number! number?<cr>
" Set f3 to toggle showing invisible characters
nmap <f3> :set list! list?<cr>
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
highlight NonText ctermfg=8 guifg=gray
" work around booking shit
" let g:syntastic_puppet_validate_disable = 1
" let g:syntastic_puppet_lint_disable = 1
source ~/.vim/cyclecolor.vim
nmap tn :tabnext<CR>
nmap tp :tabprevious<CR>
nmap tt :tabnew<CR>
"let g:nerdtree_tabs_open_on_gui_startup = 1
"let g:nerdtree_tabs_open_on_console_startup = 1
let g:airline#extensions#tabline#enabled = 1
let g:syntastic_enable_perl_checker = 1
let g:airline_powerline_fonts = 1
let g:airline_theme = 'dark'
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" let g:ctrlp_working_path_mode = 'ra'
" let g:ctrlp_clear_cache_on_exit=0
let g:ctrlp_user_command=['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f']
let g:rehash256 = 1
let g:molokai_original = 1
colorscheme holokai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment