Skip to content

Instantly share code, notes, and snippets.

@cryptojuice
Created August 22, 2017 21:42
Show Gist options
  • Save cryptojuice/0e0c67322185887baef647bdef02d713 to your computer and use it in GitHub Desktop.
Save cryptojuice/0e0c67322185887baef647bdef02d713 to your computer and use it in GitHub Desktop.
syntax enable
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" Plugin 'vim-syntastic/syntastic'
Plugin 'tpope/vim-fugitive'
Plugin 'scrooloose/nerdtree'
Plugin 'Raimondi/delimitMate'
Plugin 'kien/ctrlp.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'Yggdroot/indentLine'
Plugin 'leafgarland/typescript-vim'
Plugin 'christoomey/vim-tmux-navigator'
Plugin 'elzr/vim-json'
" color scheme
Plugin 'altercation/vim-colors-solarized'
" Plugin 'tomasr/molokai'
" comment plugins
Plugin 'tomtom/tcomment_vim'
Plugin 'scrooloose/nerdcommenter'
call vundle#end()
filetype plugin indent on
" " syntastic settings
" set statusline+=%#warningmsg#
" set statusline+=%{SyntasticStatusLineFlag()}
" set statusline+=%*
"
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
let g:vim_json_syntax_conceal = 0
" airline
let g:airline#extensions#tabline#enabled = 1
set laststatus=2
" nerdtree
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" ctrlp
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'ra'
set background=dark
colorscheme solarized
" colorscheme molokai
" let g:molokai_original = 1
" let g:rehash256 = 1
set directory=/tmp "sets the (.swp) file directory
set list listchars=tab:>-
set expandtab
set smarttab
set shiftwidth=2
set softtabstop=2
set autoindent smartindent
set backspace=2
set number
set nowrap
set complete=.,w,b,u,U,t,i,d
set wildmenu
set wildmode=list:longest,full
imap jj <Esc>
" sane splits
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 splitbelow
set splitright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment