Last active
December 30, 2015 03:35
-
-
Save tomtung/706abc88bfaf766f0b61 to your computer and use it in GitHub Desktop.
.vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set transparency=1 | |
set background=dark | |
colorscheme base16-ocean | |
set guifont=Menlo:h14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Setting up Vundle | |
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 'gmarik/Vundle.vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
" Plugin 'tpope/vim-fugitive' | |
" plugin from http://vim-scripts.org/vim/scripts.html | |
" Plugin 'L9' | |
" Git plugin not hosted on GitHub | |
" Plugin 'git://git.wincent.com/command-t.git' | |
" git repos on your local machine (i.e. when working on your own plugin) | |
" Plugin 'file:///home/gmarik/path/to/plugin' | |
" The sparkup vim script is in a subdirectory of this repo called vim. | |
" Pass the path to set the runtimepath properly. | |
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
" Avoid a name conflict with L9 | |
" Plugin 'user/L9', {'name': 'newL9'} | |
" A universal set of default vim settings that (hopefully) everyone can agree on | |
Plugin 'tpope/vim-sensible' | |
" Git wrapper | |
Plugin 'tpope/vim-fugitive' | |
" Scala support | |
Plugin 'derekwyatt/vim-scala' | |
" Snipmate and its dependencies | |
Plugin 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'garbas/vim-snipmate' | |
" Snipmate default snippets | |
Plugin 'honza/vim-snippets' | |
" Lightweight latex support | |
" See :help latex-box | |
Plugin 'LaTeX-Box-Team/LaTeX-Box' | |
" Enable repeating supported plugin maps with '.' | |
Plugin 'tpope/vim-repeat' | |
" Quoting&parenthesizing | |
" See :help surround | |
Plugin 'tpope/vim-surround' | |
" Comment stuff out | |
Plugin 'tpope/vim-commentary' | |
" Syntax checking | |
Plugin 'scrooloose/syntastic' | |
" Switch to relative line number when navigating in normal mode | |
Plugin 'jeffkreeftmeijer/vim-numbertoggle' | |
" High-quality color themes | |
" See http://chriskempson.github.io/base16 | |
Plugin 'chriskempson/base16-vim' | |
" Visualize undo history | |
Plugin 'sjl/gundo.vim' | |
nnoremap <F5> :GundoToggle<CR> | |
" Easymotion | |
Plugin 'Lokaltog/vim-easymotion' | |
" ctrlp | |
Plugin 'kien/ctrlp.vim' | |
" 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 - list configured plugins | |
" :PluginInstall(!) - install (update) plugins | |
" :PluginSearch(!) foo - search (or refresh cache first) for foo | |
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Vim-pathogen | |
" execute pathogen#infect() | |
" call pathogen#helptags() | |
" Enable syntax highlighting | |
syntax enable | |
" Enable Filetypes | |
filetype on | |
filetype plugin on | |
filetype indent on | |
" Spaces, Tabs & Indentation | |
set tabstop=3 " number of visual spaces per TAB | |
set softtabstop=3 " number of spaces in tab when editing | |
set shiftwidth=3 " number of spaces to use for each step of (auto)indent | |
set expandtab " tabs are spaces | |
set smartindent | |
set autoindent | |
" UI Config | |
set number " show line numbers | |
set ruler " Display current cursor position in lower right corner | |
set showcmd " show command in bottom bar | |
set laststatus=2 " always show status line | |
set wildmenu " visual autocomplete for command menu | |
set cursorline " highlight current line | |
set mousehide " hide mouse when typing | |
" Automatically set working directory to the current file | |
set autochdir | |
" Parenthesis | |
set showmatch " highlight matching [{()}] | |
" Searching | |
set incsearch " search as characters are entered | |
set hlsearch " highlight matches | |
set ignorecase " ignoring case in a pattern... | |
set smartcase " when the pattern contains lowercase only | |
" Folding | |
set foldenable " enable folding | |
set foldlevelstart=7 " open most folds by default | |
set foldnestmax=10 " 10 nested fold max | |
set foldmethod=indent " fold based on indent level |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment