Added spelling and heading function

This commit is contained in:
Jonas Forsberg 2020-08-18 13:49:44 +02:00
parent 68f72b0e87
commit ca517707ff
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

17
.vimrc
View File

@ -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 <Left> :echo "No left for you!"<CR>
vnoremap <Left> :<C-u>echo "No left for you!"<CR>
inoremap <Left> <C-o>:echo "No left for you!"<CR>
@ -24,7 +37,9 @@ syntax on
nnoremap <SPACE> <Nop>
let mapleader=" "
map <Leader>ss mm[sz=1<Return>`m
map <Leader>ss :call FixLastSpellingError()<CR>
map <Leader>u1 :call MakeHeading(1)<CR>
map <Leader>u2 :call MakeHeading(2)<CR>
filetype indent plugin on