Added spelling and heading function
This commit is contained in:
parent
68f72b0e87
commit
ca517707ff
17
.vimrc
17
.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 <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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user