Move vim F1-F4 mappings to separate file

This commit is contained in:
Talia 2020-08-17 13:44:04 +02:00
parent 4415f562ac
commit 6737784ac6
2 changed files with 5 additions and 4 deletions

View File

@ -586,10 +586,6 @@ nnoremap <C-a> Ea <esc>a
" This one does nothing, but I'm adding it to remember not to remap the tab key
nnoremap <tab> <C-S-I>
nnoremap <S-tab> <C-S-O>
noremap <F1> :setl number!<CR>
noremap <F2> :setl relativenumber!<CR>
noremap <F3> :setl autowriteall!<CR>:setl autowriteall?<CR>
noremap <F4> :setl list!<CR>
nnoremap <C-e> ge
nnoremap <C-E> gE
com! SetWD :cd %:p:h

5
vim/plugin/status.vim Normal file
View File

@ -0,0 +1,5 @@
noremap <F1> :setl number!<CR>
noremap <leader><F1> :setl relativenumber!<CR>
noremap <f2> :let &laststatus=!&laststatus*2<CR>
noremap <F3> :setl autowriteall!<CR>:setl autowriteall?<CR>
noremap <F4> :setl list!<CR>