Update vimrc

This commit is contained in:
Rob Watson 2021-01-12 13:49:38 +01:00
parent 050c8b555a
commit 21a7eddf9f
1 changed files with 10 additions and 5 deletions

15
vimrc
View File

@ -15,6 +15,8 @@ set shiftround
set tabstop=2 set tabstop=2
set expandtab set expandtab
set smarttab set smarttab
set splitbelow
set splitright
set encoding=utf-8 set encoding=utf-8
set nocompatible set nocompatible
set t_Co=256 set t_Co=256
@ -56,6 +58,7 @@ set balloonevalterm
set scrolloff=5 set scrolloff=5
set dict=/usr/share/dict/words set dict=/usr/share/dict/words
set shortmess+=I set shortmess+=I
set pastetoggle=<f2>
" See :help thesaurus " See :help thesaurus
set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
@ -63,9 +66,13 @@ set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
colorscheme flattened_dark colorscheme flattened_dark
set background=dark set background=dark
" Automatically load/save views on files: " Automatically load/save views on files.
au BufWinLeave *.* mkview " https://vi.stackexchange.com/posts/13874/revisions
au BufWinEnter *.* silent loadview augroup AutoSaveFolds
autocmd!
autocmd BufWinLeave,BufLeave,BufWritePost,BufHidden,QuitPre ?* nested silent! mkview!
autocmd BufWinEnter ?* silent! loadview
augroup end
" Key mappings: " Key mappings:
nnoremap j gj nnoremap j gj
@ -79,8 +86,6 @@ map <c-t> <esc>:tabnew<cr>
" Select just-pasted text: " Select just-pasted text:
nnoremap <Leader>0 `[v`] nnoremap <Leader>0 `[v`]
nnoremap Q @@ nnoremap Q @@
map <silent> <leader>p <esc>:set paste<cr>a
map <silent> <leader>P <esc>:set nopaste<cr>
function! ToggleQuickFix() function! ToggleQuickFix()