Update vimrc
This commit is contained in:
parent
050c8b555a
commit
21a7eddf9f
15
vimrc
15
vimrc
|
@ -15,6 +15,8 @@ set shiftround
|
|||
set tabstop=2
|
||||
set expandtab
|
||||
set smarttab
|
||||
set splitbelow
|
||||
set splitright
|
||||
set encoding=utf-8
|
||||
set nocompatible
|
||||
set t_Co=256
|
||||
|
@ -56,6 +58,7 @@ set balloonevalterm
|
|||
set scrolloff=5
|
||||
set dict=/usr/share/dict/words
|
||||
set shortmess+=I
|
||||
set pastetoggle=<f2>
|
||||
" See :help thesaurus
|
||||
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
|
||||
set background=dark
|
||||
|
||||
" Automatically load/save views on files:
|
||||
au BufWinLeave *.* mkview
|
||||
au BufWinEnter *.* silent loadview
|
||||
" Automatically load/save views on files.
|
||||
" https://vi.stackexchange.com/posts/13874/revisions
|
||||
augroup AutoSaveFolds
|
||||
autocmd!
|
||||
autocmd BufWinLeave,BufLeave,BufWritePost,BufHidden,QuitPre ?* nested silent! mkview!
|
||||
autocmd BufWinEnter ?* silent! loadview
|
||||
augroup end
|
||||
|
||||
" Key mappings:
|
||||
nnoremap j gj
|
||||
|
@ -79,8 +86,6 @@ map <c-t> <esc>:tabnew<cr>
|
|||
" Select just-pasted text:
|
||||
nnoremap <Leader>0 `[v`]
|
||||
nnoremap Q @@
|
||||
map <silent> <leader>p <esc>:set paste<cr>a
|
||||
map <silent> <leader>P <esc>:set nopaste<cr>
|
||||
|
||||
|
||||
function! ToggleQuickFix()
|
||||
|
|
Loading…
Reference in New Issue