Created
June 16, 2016 07:24
-
-
Save koleksiuk/537ce0a5bf35e48d7b8ab3592f27f177 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 nocompatible " be iMproved, required | |
filetype off " required | |
filetype plugin indent on " required | |
filetype indent on " load filetype-specific indent files | |
" 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 | |
" | |
if has("gui_running") | |
let g:loaded_netrw = 1 " Disable netrw | |
let g:loaded_netrwPlugin = 1 " Disable netrw | |
let mapleader="," | |
endif | |
set background=dark | |
" colorscheme solarized | |
" colorscheme sorcerer | |
colorscheme itg_flat | |
" colorscheme gruvbox | |
" let g:ruby_path = system('echo $HOME/.rbenv/shims') | |
" strip whitespace on save | |
autocmd BufWritePre * :%s/\s\+$//e | |
:map <M-s> :w<kEnter> "Works in normal mode, must press Esc first" | |
:imap <M-s> <Esc>:w<kEnter>i "Works in insert mode, saves and puts back in insert mode" | |
map Q <Nop> | |
autocmd FileType make setlocal noexpandtab | |
set guifont=Monaco:h12 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set colorcolumn=80 | |
set cpoptions+=$ " puts a $ marker for the end of words/lines in cw/c$ commands | |
set cursorline | |
set nobackup | |
set noswapfile | |
set number | |
set incsearch " search as characters are entered | |
set hlsearch " highlight matches | |
set showmatch " highlight matching [{()}] | |
set spelllang=en | |
" Do not select the end of line. | |
set selection=old | |
" Expand tabs into spaces. | |
set expandtab | |
" Insert spaces in front of lines. | |
set smarttab | |
" Copy indent from the current line. | |
set autoindent | |
" Wrap text. | |
set wrap | |
" Maximum line width before wrapping. | |
set textwidth=80 | |
" Describes how auto formatting is to be done. | |
set formatoptions=qrn1 | |
" by default, the indent is 2 spaces. | |
set shiftwidth=2 | |
set softtabstop=2 | |
set tabstop=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment