Skip to content

Instantly share code, notes, and snippets.

@mrmnmly
Last active August 29, 2015 14:14
Show Gist options
  • Save mrmnmly/f1f62d08a052fd0ec3e0 to your computer and use it in GitHub Desktop.
Save mrmnmly/f1f62d08a052fd0ec3e0 to your computer and use it in GitHub Desktop.
my `.vimrc` file
"vundler config
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
"vim plugin list
Plugin 'gmarik/Vundle.vim' "this is required for vim bundler
Plugin 'godlygeek/tabular'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'ervandew/supertab'
Plugin 'vim-scripts/Better-CSS-Syntax-for-Vim'
Plugin 'plasticboy/vim-markdown'
Plugin 'wincent/command-t'
Plugin 'scrooloose/nerdcommenter'
Plugin 'docunext/closetag.vim'
Plugin 'godlygeek/csapprox'
Plugin 'scrooloose/nerdtree'
Plugin 'flazz/vim-colorschemes'
Plugin 'mattn/emmet-vim'
Plugin 'bling/vim-airline'
Plugin 'cdmedia/itg_flat_vim'
"vim configuration
autocmd vimenter * NERDTree
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set number
set t_Co=256
syntax enable
set autoindent
set hlsearch
set ignorecase
colorscheme itg_flat
set encoding=utf-8
set laststatus=2
set esckeys
set timeoutlen=1000 ttimeoutlen=0
set hidden
syntax on
set scrolloff=8
set backup
set backupdir=~/.vim/backups/tmp
set dir=~/.vim/swaps/tmp
set ttyfast
set cursorline
"airline-vim font stuff
let g:airline#extensions#tabline#enabled=1
set guifont=Liberation\ Mono\ for\ Powerline:h13
let g:airline_powerline_fonts=1
if !exists('g:airline_symbols')
let g:airline_symbols={}
endif
set fillchars+=stl:\ ,stlnc:\ "
"vim keymap
map tn :tabn<CR>
map tp :tabp<CR>
map <C-j> 10j
map <C-k> 10k
map <A-s> :w
nmap <Space> i
nnoremap <C-]><C-]> :bn<CR><Esc>
nnoremap <C-[><C-[> :bp<CR><Esc>
nnoremap <C-e> :Explore<CR>
nnoremap <C-[><C-]> <C-w><C-w>
nnoremap <Delete> <Delete>i
nnoremap \\ A<Esc>
nnoremap <CR> :noh<CR><CR>
nnoremap qq :bd<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment