Skip to content

Instantly share code, notes, and snippets.

@batoreh
Last active September 9, 2017 02:20
Show Gist options
  • Save batoreh/36ef6255d1cc641ac4bae2972a13f2c6 to your computer and use it in GitHub Desktop.
Save batoreh/36ef6255d1cc641ac4bae2972a13f2c6 to your computer and use it in GitHub Desktop.
vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'powerline/fonts'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'bling/vim-bufferline'
Plugin 'tpope/vim-markdown'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'ervandew/supertab'
Plugin 'Yggdroot/indentLine'
Plugin 'raimondi/delimitmate'
Plugin 'wakatime/vim-wakatime'
Plugin 'mxw/vim-jsx'
Plugin 'bling/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'airblade/vim-gitgutter'
call vundle#end()
filetype plugin indent on
"""
"""""
""""""" non plugin things
"""""
"""
set mouse=a
set nonumber
set ruler
set showcmd
set autoindent
set cursorline
set nocursorcolumn
set nocursorline
set laststatus=2
set hlsearch
set ic
syntax on
nmap <leader>ne :NERDTree<CR>
nmap <leader>nc :NERDTreeClose<CR>
nmap <C-]> :NERDTreeToggle<CR>
nmap <C-e> :vsplit<CR>
nmap <C-g> :split<CR>
nmap <C-t> :tabnew <CR>
nmap <C-S-tab> :tabprevious <CR>
nmap <C-tab> :tabnext <CR>
set hidden
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
set t_Co=16
nmap <C-h> <C-w>h
nmap <C-j> <C-w>j
nmap <C-k> <C-w>k
nmap <C-l> <C-w>l
syntax enable
let g:solarized_termcolors=256
let g:solarized_termtrans=1
colorscheme slate
set autoread
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
let g:airline_theme='powerlineish'
filetype plugin indent on
autocmd Filetype php setlocal sts=4 sw=4 expandtab
autocmd Filetype perl setlocal sts=4 sw=4 expandtab
autocmd Filetype sh setlocal sts=4 sw=4 expandtab
autocmd Filetype javascript setlocal sts=2 sw=2 expandtab
autocmd Filetype sql setlocal sts=2 sw=2 expandtab
autocmd Filetype lua setlocal sts=2 sw=2 expandtab
autocmd Filetype haskell setlocal sts=2 sw=2 expandtab
autocmd Filetype scss setlocal sts=2 sw=2 expandtab
autocmd Filetype less setlocal sts=2 sw=2 expandtab
autocmd Filetype css setlocal sts=2 sw=2 expandtab
autocmd Filetype html setlocal sts=2 sw=2 expandtab
autocmd Filetype python setlocal sts=4 sw=4 expandtab
autocmd Filetype c setlocal sts=4 sw=4 expandtab}
autocmd Filetype ruby setlocal sts=2 sw=2 expandtab
autocmd Filetype vcl setlocal sts=4 sw=4 expandtab
autocmd Filetype json setlocal sts=4 sw=4 expandtab
autocmd Filetype erb setlocal sts=4 sw=4 expandtab
au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown
" NERDTREE
let NERDChristmasTree = 1
let NERDTreeHighlightCursorline = 1
set formatoptions=1
set lbr
set linebreak
set wrap
au BufRead,BufNewFile *.todo setfiletype todo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment