Last active
September 2, 2019 10:32
-
-
Save mr1holmes/211c4669d92dd5d998ec2d55e010c23c 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
| " Use vim settings, don't worry about vi compatibility | |
| set nocompatible | |
| " Line numbers | |
| set number | |
| set relativenumber | |
| " Tab and Indentation | |
| set tabstop=4 | |
| set expandtab | |
| set smarttab | |
| set shiftwidth=4 | |
| set autoindent | |
| filetype plugin on | |
| set wrap | |
| set ruler | |
| " Enable folding | |
| set foldmethod=indent | |
| set foldlevel=99 | |
| " Linebreak on 500 characters | |
| set lbr | |
| set tw=500 | |
| " Ignore case when searching | |
| set ignorecase | |
| " When searching try to be smart about cases | |
| set smartcase | |
| " Highlight search results | |
| set hlsearch | |
| " Makes search act like search in modern browsers | |
| set incsearch | |
| " Don't redraw while executing macros (good performance config) | |
| set lazyredraw | |
| " For regular expressions turn magic on | |
| set magic | |
| " Show matching brackets when text indicator is over them | |
| set showmatch | |
| " How many tenths of a second to blink when matching brackets | |
| set mat=2 | |
| " Make backspace work as you would expect. | |
| set backspace=indent,eol,start | |
| " Turn backup off, since most stuff is in SVN, git et.c anyway... | |
| set nobackup | |
| set nowb | |
| set noswapfile | |
| map <leader>ss :setlocal spell!<cr> | |
| au BufWrite * :Autoformat | |
| source $VIMRUNTIME/vimrc_example.vim | |
| set tags=tags | |
| " Start NERDTree on startup | |
| autocmd VimEnter * NERDTree | |
| autocmd VimEnter * wincmd p | |
| " Better commit messages | |
| autocmd Filetype gitcommit setlocal spell textwidth=72 | |
| " habit breaker" | |
| noremap <Up> <NOP> | |
| noremap <Down> <NOP> | |
| noremap <Left> <NOP> | |
| noremap <Right> <NOP> | |
| "split navigations | |
| nnoremap <C-J> <C-W><C-J> | |
| nnoremap <C-K> <C-W><C-K> | |
| nnoremap <C-L> <C-W><C-L> | |
| nnoremap <C-H> <C-W><C-H> | |
| colorscheme Monokai | |
| " vim-plug settings | |
| call plug#begin('~/.vim/plugged') | |
| " Make sure you use single quotes | |
| Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
| " Plug 'scrooloose/syntastic' | |
| Plug 'scrooloose/nerdcommenter' | |
| Plug 'bling/vim-airline' | |
| Plug 'ervandew/supertab' | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'tpope/vim-surround' | |
| Plug 'mhinz/vim-startify' | |
| Plug 'chiel92/vim-autoformat' | |
| " Add plugins to &runtimepath | |
| call plug#end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment