Created
June 7, 2018 22:37
-
-
Save tourdedave/d62e019b58638732f568c90f7305fd16 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
" be iMproved, required | |
set nocompatible | |
" Set utf8 as standard encoding and en_US as the standard language | |
set encoding=utf8 | |
" set leader key | |
let mapleader = "," | |
" customize characters | |
set list | |
set list listchars=trail:·,eol:¬ | |
set tabstop=2 shiftwidth=2 expandtab | |
" turn numbers on | |
set number | |
" highlight all found entries | |
set hlsearch | |
" remove highlight | |
nnoremap <CR> :noh<CR> | |
" turn on vim's wild menu | |
set wildmenu | |
" make the wild menu case insensitive | |
set wildignorecase | |
" enable syntax highlighting | |
syntax on | |
" enable vim plugin support with pathogen | |
execute pathogen#infect() | |
" enable filetype plugins | |
filetype plugin indent on | |
" auto-read a file when it's changed from the outside | |
set autoread | |
" No annoying sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
" key bindings for pane navigation | |
map <C-J> <C-W>j<C-W>_ | |
map <C-K> <C-W>k<C-W>_ | |
map <c-h> <c-w>h<c-w>_ | |
map <c-l> <c-w>l<c-w>_ | |
" FZF key bindings | |
map <C-f> :FZF<CR> | |
map <C-p> :FZF<CR> | |
" NERDTree customizations | |
let g:NERDTreeDirArrows=0 | |
let NERDTreeShowHidden=1 | |
" Ignore case when searching | |
set ignorecase | |
" When searching try to be smart about cases | |
set smartcase | |
"autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1 | |
"autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1 | |
" Custom hot-key bindings for running a program against the focused file | |
map <Leader><C-r> :!clear; bundle exec ruby % <Return> | |
" Prevent swp files from being rendered | |
set nobackup | |
set nowb | |
set noswapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ls ~/.vim/bundle
fzf
nerdtree
nerdtree-git-plugin
vim-airline
vim-fugitive
vim-gitgutter