Skip to content

Instantly share code, notes, and snippets.

@mbajur mbajur/.vimrc Secret
Created Nov 4, 2015

Embed
What would you like to do?
set nocompatible
filetype off
" 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 'chriskempson/base16-vim' " base16 theme
Plugin 'scrooloose/nerdtree' " Sidebar
Plugin 'nathanaelkane/vim-indent-guides' " Indent guidelines (not working)
Plugin 'tommcdo/vim-lion' " Alignmnent
Plugin 'jistr/vim-nerdtree-tabs' " Keeps nerdtree between tabs
" Plugin 'vim-scripts/CSApprox' " Fixes colors for terminal or something like that
Plugin 'kien/ctrlp.vim' " Ctrl + P
Plugin 'bling/vim-airline' " Better footer for vim
Plugin 'slim-template/vim-slim' " Slim syntax support
Plugin 'scrooloose/nerdcommenter' " Commenting
Plugin 'matze/vim-move'
" Plugin 'terryma/vim-multiple-cursors'
Plugin 'pearofducks/ansible-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
" Set colorscheme
colorscheme base16-ocean
" Display line numbers
:set number
" Set font
set guifont=Menlo:h14
:set linespace=5
" Highlight current line
set cursorline
" Show <Leader> in footer
:set showcmd
" IndentGroup settings
" colorscheme default
let g:indent_guides_auto_colors = 0
hi IndentGuidesOdd guibg=red ctermbg=3
hi IndentGuidesEven guibg=green ctermbg=4
" Indentation settings
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
" Ctrlp.vim settings
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" Set currently open file dir as default dir by default
autocmd BufEnter * silent! lcd %:p:h
" Rember file position when reopening
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" Disable wraping
set nowrap
" Disable scrolls in MacVim
set guioptions-=r
set guioptions-=L
""
" Custom maps
"
" 1. Normal mode maps
:nmap <tab> :NERDTreeFocusToggle<CR>
" 2. All modes maps
:map <D-/> \cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.