Skip to content

Instantly share code, notes, and snippets.

@thomasweng15
Last active April 12, 2018 02:59
Show Gist options
  • Save thomasweng15/8f0793268d89a906b055685f72c09702 to your computer and use it in GitHub Desktop.
Save thomasweng15/8f0793268d89a906b055685f72c09702 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'christoomey/vim-tmux-navigator'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
autocmd vimenter * NERDTree
" Go to previous (last accessed) window.
autocmd VimEnter * wincmd p
"" General
"colorscheme jellybeans
set number
set showmatch
set noerrorbells
set novisualbell
set tabstop=2
set softtabstop=2
set shiftwidth=2
set noexpandtab
set hlsearch
set gdefault
set incsearch
set colorcolumn=80
set ruler
set undolevels=1000
syntax enable
set background=dark
set mouse=a
noremap <silent> <C-l> <c-w>l
noremap <silent> <C-h> <c-w>h
noremap <silent> <C-k> <c-w>k
noremap <silent> <C-j> <c-w>j
let g:airline_theme='jellybeans'
set t_Co=256
au BufNewFile,BufRead *.launch set filetype=xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment