Added graphical init file and auto load/save folds

Updated plugins as well
This commit is contained in:
Claudio Maggioni 2019-04-18 22:40:57 +02:00
parent 001e1d4379
commit f69c461cdf
11 changed files with 24 additions and 10 deletions

1
ginit.vim Normal file
View File

@ -0,0 +1 @@
Guifont Fira Mono:h12

View File

@ -6,6 +6,9 @@ if !has('nvim')
setlocal cm=blowfish2
end
" activate mouse support
set mouse=a
" allow unsaved hidden buffers
set hidden
@ -79,6 +82,13 @@ let g:autocomplete_key = "\<C-N>"
" autocomplete with Tsuquyomi on TypeScript files
autocmd FileType typescript let g:autocomplete_key = "\<C-x>\<C-o>"
" Automatically save folds for each file
augroup AutoSaveFolds
autocmd!
autocmd BufWinLeave * mkview
autocmd BufWinEnter * silent! loadview
augroup END
" clear search pattern with F2
noremap <F2> :let @/ = ""<CR>
@ -111,7 +121,7 @@ nnoremap <unique> <Leader>I <Plug>WildignoreFromGitignore
" clear trailing spaces in file
function! g:ClearTrailingSpaces()
silent! %s/\s *$//g
silent! %s/\s\s*$//g
let @/ = "" " clear last search
endfunction
@ -133,6 +143,9 @@ nnoremap <Leader>e :Ex<CR>
" close quickfix window with: Leader Q
nnoremap <Leader>Q :ccl<CR>
" Insert in the end of file with Leader c
nnoremap <Leader>c GA
" Go files: launch go lint quickfix with: Leader q
autocmd FileType go nnoremap <Leader>q :w<CR>:GoLint<CR>

@ -1 +1 @@
Subproject commit 77c7b00eb15d9b886e19d491cb44a96284cf0466
Subproject commit d8d5f7fe71ac71194fac24433989b6fbd2deb48d

@ -1 +1 @@
Subproject commit c68bbb54d97ab8cea46b866e86a584f4d7a9db4a
Subproject commit da2aeaa81a19af58fba5ce555519f6ca49108241

@ -1 +1 @@
Subproject commit a386d98189a4afe63f23a9174115467c6792aac6
Subproject commit 2a3dcbc9085975c3b1c49c382f6c87c69d199a44

@ -1 +1 @@
Subproject commit 0e9d92eead2df21abe342c4341c55536dd36b0af
Subproject commit f50fed442f8e75e714efeaf015225af9eaf67cf4

@ -1 +1 @@
Subproject commit 72888d87ea57761f21c9f67cd0c0faa5904795eb
Subproject commit ead2cd63bbe4ceec161f9634c8b52048551f91b4

@ -1 +1 @@
Subproject commit a61545f09cad6df2e7a4918cbd6981811f612ae9
Subproject commit 9a4f21e5343437bdb4619f19b48cbf6d5cb7755c

@ -1 +1 @@
Subproject commit 9b62e6bdd9de9fe027363bbde68e9e32d937cfa0
Subproject commit b67c78ab929d0bd68c5a00df9d9271d0a82e0705

@ -1 +1 @@
Subproject commit 164d93736d5cee79c77d4a8a3f722ef31d8d2f4c
Subproject commit c08b63500a70b3b654d2467d25f7c9fa4543d43a

@ -1 +1 @@
Subproject commit 9136f03680db82c552f4a84e3b461f83c6e232d5
Subproject commit eb5b2b1248ccc8b1b9e84d7658508e38b964d17d