Compare commits

...

2 Commits

Author SHA1 Message Date
Claudio Maggioni 0d133290f6 Merge branch 'master' of git.maggioni.xyz:maggicl/nvim-config 2019-04-18 22:43:14 +02:00
Claudio Maggioni f69c461cdf Added graphical init file and auto load/save folds
Updated plugins as well
2019-04-18 22:43:01 +02:00
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
@ -82,6 +85,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>
@ -114,7 +124,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
@ -136,6 +146,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 a570035f4540c464f7f8a660077e928f5e221b4f
Subproject commit d8d5f7fe71ac71194fac24433989b6fbd2deb48d

@ -1 +1 @@
Subproject commit a561ccc58809bdadb025bd539649a25e13ca1c4a
Subproject commit da2aeaa81a19af58fba5ce555519f6ca49108241

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

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

@ -1 +1 @@
Subproject commit 448aa43ec4bb49dfb3f75c3e52aad41eec9ee2ce
Subproject commit ead2cd63bbe4ceec161f9634c8b52048551f91b4

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

@ -1 +1 @@
Subproject commit 32c002c239d1838636bd3787012dc319dc4c96ee
Subproject commit b67c78ab929d0bd68c5a00df9d9271d0a82e0705

@ -1 +1 @@
Subproject commit 490e6a7896ba31afad0cf8eaa53ea84eb25eaaa2
Subproject commit c08b63500a70b3b654d2467d25f7c9fa4543d43a

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