Created
November 19, 2012 09:54
-
-
Save kendaganio/4109901 to your computer and use it in GitHub Desktop.
Office 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
" Its 2012 man. | |
set nocompatible | |
" Syntax higlighting and color schemes | |
syntax enable | |
set t_Co=256 | |
set background=dark | |
let base16colorspace=256 | |
" colorscheme solarized | |
" Incremental search | |
set ignorecase | |
set smartcase | |
set incsearch | |
set nowrap " Don't wrap lines | |
set expandtab | |
set tabstop=4 | |
set pastetoggle=<F2> " F2 toggles indenting when pasting | |
set shiftwidth=4 | |
set nu " Set line numbers | |
set hlsearch | |
set nocp | |
set mouse=a | |
set title " Show buffer title | |
set autoread " Reloads any changes to a changed file | |
" Change leader key to comma | |
let mapleader = "," | |
" Set a vertical bar at 80 characters | |
set textwidth=80 | |
set colorcolumn=+1 | |
set autoindent | |
set copyindent | |
" Don't let vim write backup files | |
set nobackup | |
set noswapfile | |
set nowb | |
" Display tabs and trailing spaces visually | |
set list listchars=tab:\ \ ,trail:· | |
" Auto loads all vim plugins in the autoload directory | |
call pathogen#infect() | |
filetype plugin indent on | |
" Toggle NERDTree | |
nnoremap <leader>d :NERDTreeToggle<cr> | |
" Easy ack-grepping! | |
nnoremap <leader>a :Ack ''<left> | |
" Remaps colon to semicolon | |
nnoremap ; : | |
" Remap escape key to jk | |
inoremap jk <esc> | |
vnoremap jk <esc> | |
" Add a leader command to edit vimrc | |
nnoremap <leader>ev <C-w><C-v><C-l>:e $MYVIMRC<cr> | |
" Remove search highlights | |
nnoremap // :nohlsearch<cr> | |
" Powerline fancy symbols and colorscheme | |
let g:Powerline_symbols = 'fancy' | |
" let g:Powerline_theme = 'skwp' | |
" let g:Powerline_colorscheme = 'skwp' | |
" Buffer moving and stuff | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
" Buffer splitting | |
nnoremap ss <C-w>s | |
nnoremap vv <C-w>v | |
" Gvim related settings | |
if has('gui_running') | |
colorscheme base16-monokai | |
set guifont=Inconsolata-dz\ for\ Powerline\ Medium\ 10 | |
set guioptions+=LlRrb " this removes the pesky | |
set guioptions-=LlRrb " scrollbars, lol | |
set guioptions-=T " remove toolbar | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment