summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vimrc21
1 files changed, 11 insertions, 10 deletions
diff --git a/vimrc b/vimrc
index 504d205..ed219d1 100644
--- a/vimrc
+++ b/vimrc
@@ -8,17 +8,18 @@ set fileformats=unix,dos,mac
set spelllang=en_us
set switchbuf=useopen
-" Outsourced functions file
-runtime functions.vim
-
" Colors and Syntax {{{1
set t_Co=16
set background=dark
-colorscheme solarized
+colorscheme zlg
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
+" General purpose syntax useful in all files
+highlight TrailingWhitespace ctermbg=magenta term=underline
+syntax match TrailingWhitespace /\s\+$/
+
" Plugin-Specific {{{1
" Use vim-plug
call plug#begin('~/.vim/bundle')
@@ -116,16 +117,16 @@ if has("autocmd")
endif
" Key Bindings {{{1
-nnoremap <leader>i :call <SID>SynStack()<CR>
+nnoremap <leader>i :call zlg#SynStack()<CR>
nnoremap <leader>l :set list!<CR>
nnoremap <leader>n :set number!<CR>
nnoremap <leader>t :setfiletype text<CR>
nnoremap <leader>s :set spell!<CR>
-nnoremap <leader>c :call <SID>CountCodeLines()<CR>
-nnoremap <leader>d :call <SID>InsertDOW()<CR>
+nnoremap <leader>c :call zlg#CountCodeLines()<CR>
+nnoremap <leader>d :call zlg#InsertDOW()<CR>
nnoremap <leader>D "=strftime("%Y-%m-%d %H:%M", localtime())<CR>p
nnoremap <Space> za
-nnoremap <silent> <F5> :call <SID>StripTrailingWhitespaces()<CR>
+nnoremap <silent> <F5> :call zlg#StripTrailingWhitespaces()<CR>
" Thanks to /u/spupy for these short and sweet mappings that replace the
" simpler functions of tpope's surround.vim plugin. Each of these will
@@ -140,12 +141,12 @@ noremap <Leader>w< <ESC>`>a><ESC>`<i<<ESC>
noremap <Leader>w` <ESC>`>a`<ESC>`<i`<ESC>
" super handy over SSH
-noremap <Leader>q :call SwapKeys()<CR>
+noremap <Leader>q :call zlg#SwapKeys()<CR>
" Dvorak Hackery {{{1
if exists("g:use_dvorak") && g:use_dvorak == 1
- silent call SetKeyMap()
+ silent call zlg#SetKeyMap()
endif
" vim: foldmethod=marker