Add keyboard shortcuts for toggle autoformat

This commit is contained in:
2023-06-22 19:19:36 +02:00
parent fe63440180
commit f3b22e30a5
2 changed files with 7 additions and 2 deletions

View File

@@ -37,8 +37,8 @@ set ignorecase
set smartcase set smartcase
"Informative statusline "Informative statusline
set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%02l:%02v\ (%p%%)\ %L\ Lines]\ [ASCII=\%03.3b]\ [HEX=\%02.2B] "set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%02l:%02v\ (%p%%)\ %L\ Lines]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]
set laststatus=2 "set laststatus=2
" Beautify the look and feel " Beautify the look and feel
syntax on syntax on

View File

@@ -31,3 +31,8 @@ nmap <F6> :GrammarousCheck <CR>
" Map the esc key to close a terminal " Map the esc key to close a terminal
tnoremap <ESC> <C-\><C-n>:bd!<CR> tnoremap <ESC> <C-\><C-n>:bd!<CR>
" Map a key to toggle vim-pencil's auto formatting
noremap <silent> <F12> :<C-u>PFormatToggle<cr>
inoremap <silent> <F12> <C-o>:PFormatToggle<cr>