Add keyboard shortcuts for toggle autoformat
This commit is contained in:
4
init.vim
4
init.vim
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user