gitconfig: tidy up

This commit is contained in:
Bill Niblock 2017-05-26 17:49:22 -04:00
parent 4d55222f52
commit 04ae008f4f
2 changed files with 8 additions and 21 deletions

View file

@ -6,15 +6,10 @@
# Show me absolute paths, not relative paths # Show me absolute paths, not relative paths
# Link to a global excludes file # Link to a global excludes file
[status] [status]
relativePaths = false relativePaths = false
[core] [core]
excludesfile = ~/.gitignore excludesfile = ~/.gitignore
# User Settings
# User details
[user]
name = Bill Niblock
email = azulien@gmail.com
[init] [init]
templatedir = ~/.git_template templatedir = ~/.git_template

View file

@ -72,36 +72,28 @@ augroup END
" ============================================================================== " ==============================================================================
" Mappings " Mappings
" ============================================================================== " ==============================================================================
" Map Leader key
let mapleader = "," let mapleader = ","
" Remap ESC in insert mode
inoremap jk <esc>
" Make moving up/down work on wrapped lines of text " Make moving up/down work on wrapped lines of text
nnoremap <silent> j gj nnoremap <silent> j gj
nnoremap <silent> k gk nnoremap <silent> k gk
nnoremap <silent> ^ g^ nnoremap <silent> ^ g^
nnoremap <silent> $ g$ nnoremap <silent> $ g$
" Toggle fold with space, if we're in a fold, otherwise just space " Toggle fold with space, if we're in a fold, otherwise just space
nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR> nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
vnoremap <Space> zf vnoremap <Space> zf
" Allow saving of files as sudo when I forgot to start vim using sudo. " Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null % cmap w!! w !sudo tee > /dev/null %
" Remap ESC in insert mode
inoremap jk <esc>
" Remove Trailing Whitespaace " Remove Trailing Whitespaace
nnoremap <silent> <leader>rtw :%s/\s\+$//e<CR> nnoremap <silent> <leader>rtw :%s/\s\+$//e<CR>
" Open help topic in a full new tab " Open help topic in a full new tab
command! -nargs=1 -complete=help H :tabnew | :set buftype=help | :h <args> command! -nargs=1 -complete=help H :tabnew | :set buftype=help | :h <args>
" Show buffer list and prompt to choose one " Show buffer list and prompt to choose one
nnoremap <leader>b :ls<CR>:b<space> nnoremap <leader>b :ls<CR>:b<space>
" Simple mapping to dotfiles directory (f = current tab; F = new tab)
" Simple mapping to dotfiles directory nnoremap <silent> <leader>f :edit ~/.dotfiles/<CR>
nnoremap <silent> <leader>f :tabnew ~/.dotfiles/<CR> nnoremap <silent> <leader>F :tabnew ~/.dotfiles/<CR>
" ============================================================================== " ==============================================================================
" Plugins " Plugins
" ============================================================================== " ==============================================================================