Skip to content

Instantly share code, notes, and snippets.

@akdetrick
Created September 16, 2019 21:31
Show Gist options
  • Save akdetrick/e7f08930ef89ab2a4a1f91bf3ee2c7b9 to your computer and use it in GitHub Desktop.
Save akdetrick/e7f08930ef89ab2a4a1f91bf3ee2c7b9 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
" VUNDLE
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'editorconfig/editorconfig-vim'
Plugin 'isRuslan/vim-es6'
Plugin 'mxw/vim-jsx'
Plugin 'git://github.com/ajh17/VimCompletesMe.git'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
call vundle#end()
" syntax
syntax on
syntax enable
filetype plugin indent on
" file types
autocmd BufRead *.py set filetype=python
" indentation
set listchars=tab:`\ ,trail:~,extends:>,precedes:<
set list
set smartindent
set modelines=0
set shiftwidth=3
set tabstop=3
set shiftwidth=3
set noexpandtab
autocmd FileType python setlocal tabstop=4
autocmd FileType python setlocal shiftwidth=4
autocmd FileType python setlocal expandtab
autocmd FileType python setlocal tabstop=4
autocmd FileType python setlocal shiftwidth=4
autocmd FileType python setlocal expandtab
" Mode stuff
set history=50
set encoding=utf-8
set scrolloff=3
set ai
set autoindent
set autoread
set si
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set ttyfast
set ruler
set foldmethod=marker
set number
" movement
set ignorecase
set showmatch
" leader key
let mapleader=","
" wrapping
set nowrap
" leader mappings
nnoremap <leader>a :Ack
nnoremap <leader>o :NERDTree<CR>
nnoremap <leader>v V`]
nnoremap <leader>w <C-w><C-w>
nnoremap <leader>s <C-w><C-v>
" build mappings
" nnoremap <leader>b :w <CR> :! {shell cmd for some build process} <CR>
" insert mappings
imap jj <Esc>
imap uu _
" visual
set linespace=2
set laststatus=2
" visual | italics
hi htmlArg gui=italic cterm=italic
hi Comment gui=italic cterm=italic
hi Type gui=italic cterm=italic
hi javaScriptSource gui=italic cterm=italic
hi javaScriptBranch gui=italic cterm=italic
hi javaScriptGlobalObjects gui=italic cterm=italic
" spelling (text only)
if v:version >= 700
autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en
autocmd BufNewFile,BufRead *.md setlocal spell spelllang=en
endif
" Plugin configs
let g:vim_markdown_folding_disabled = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment