Minor updates

This commit is contained in:
Bill Niblock 2016-11-21 12:26:01 -05:00
parent 470f4a1cde
commit ad960399f8
4 changed files with 39 additions and 25 deletions

View file

@ -14,6 +14,7 @@ set nocompatible
" Necessary for Syntax hilighting and cool stuff
syntax on
filetype plugin indent on
set encoding=utf-8
" Auto-reload files changed outside Vim
set autoread
@ -29,8 +30,10 @@ set number
set autoindent
set expandtab
set smarttab
set tabstop=4
set shiftwidth=4
set softtabstop=4
" File-Type Specifics
augroup customfiletypes
" Clear old autocmds in group
@ -43,7 +46,7 @@ augroup END
" Set width; word wrap; scroll mods
set scrolloff=5
set textwidth=80
" set colorcolumn=80
set winwidth=80
set wrap
" Enable auto-completion for vim commands
@ -53,6 +56,7 @@ set wildmode:longest:full,full
" Search modifications
" Incremental search; search hilighting
set ignorecase smartcase
set incsearch
set hlsearch
@ -85,23 +89,21 @@ nnoremap <silent> <C-h> <C-w>h
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
" Edit dotfiles with <leader>d
" v is for vim
nnoremap <silent> <leader>dv :tabnew ~/.dotfiles/vim/vimrc<CR>
nnoremap <silent> <leader>dp :tabnew ~/.dotfiles/vim/vimrc-plugins<CR>
" b is for bash
" nnoremap <silent> <leader>db :tabnew ~/.dotfiles/bash/bashrc<CR>
" t is for tmux
nnoremap <silent> <leader>dt :tabnew ~/.dotfiles/tmux/tmux.conf<CR>
" m is for makefile
nnoremap <silent> <leader>dm :tabnew ~/.dotfiles/makefile<CR>
" Remap ESC in insert mode
inoremap jk <esc>
" Remove Trailing Whitespaace
nnoremap <silent> <leader>rtw :%s/\s\+$//e<CR>
" Easy mapping for Startify
nnoremap <silent> <leader>s :Startify<CR>
" Open help topics in a full new tab
command! -nargs=1 -complete=help H :enew | :set buftype=help | :h <args>
" Show buffer list and prompt to choose one
nnoremap <leader>b :ls<CR>:b<space>
"######
"# Plugins
"###

View file

@ -25,6 +25,7 @@ endif
" # Fetch & Install Plugins
" ###
call plug#begin('~/.vim/bundle')
" Current list of plugins
@ -61,8 +62,14 @@ set laststatus=2
let g:airline_powerline_fonts = 1
" Startify configs
let g:startify_files_number = 5
let g:startify_files_number = 6
let g:startify_change_to_dir = 1
let g:startify_bookmarks = [
\ '~/.dotfiles/vim/vimrc',
\ '~/.dotfiles/vim/vimrc-plugins',
\ '~/.dotfiles/tmux/tmux.conf',
\ '~/.dotfiles/makefile',
\ ]
" Syntastic configs
let g:syntastic_always_populate_loc_list = 1