diff --git a/.vimrc b/.vimrc index 53c2a5d..ac1bf01 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,16 @@ +function! FixLastSpellingError() + normal! mm[s1z=`m +endfunction + +function! MakeHeading(level) + if a:level == 1 + normal! yypVr= + elseif a:level == 2 + normal! yypVr~ + endif +endfunction + + nnoremap :echo "No left for you!" vnoremap :echo "No left for you!" inoremap :echo "No left for you!" @@ -24,7 +37,9 @@ syntax on nnoremap let mapleader=" " -map ss mm[sz=1`m +map ss :call FixLastSpellingError() +map u1 :call MakeHeading(1) +map u2 :call MakeHeading(2) filetype indent plugin on