Small improvements

This commit is contained in:
Claudio Maggioni 2019-02-05 14:54:59 +01:00
parent 45ee08debe
commit a5985f47ee
3 changed files with 9 additions and 1 deletions

3
.gitmodules vendored
View file

@ -28,3 +28,6 @@
[submodule "pack/plugins/start/vim-grepper"]
path = pack/plugins/start/vim-grepper
url = https://github.com/mhinz/vim-grepper.git
[submodule "pack/plugins/start/gitignore.vim"]
path = pack/plugins/start/gitignore.vim
url = https://github.com/euclio/gitignore.vim

View file

@ -30,6 +30,8 @@ set autoindent
set path+=**
set wildignore+=**/node_modules/**
let g:netrw_list_hide = netrw_gitignore#Hide()
" ADDITIONAL COMMANDS
inoremap <S-tab> <C-d>
@ -89,6 +91,8 @@ nnoremap <Leader>d :bp\|bd #<CR>
nnoremap <Leader>t :tabnext<CR>
tnoremap <C-e> <C-\><C-n>:tabnext<CR>
nnoremap <unique> <Leader>I <Plug>WildignoreFromGitignore
" clear trailing spaces in file
function! g:ClearTrailingSpaces()
silent! %s/\s *$//g
@ -96,7 +100,7 @@ function! g:ClearTrailingSpaces()
endfunction
" remove trailing spaces with: Leader t s
nnoremap <silent> <Leader>ts :call ClearTrailingSpaces()<CR>
nnoremap <silent> <Leader>s :call ClearTrailingSpaces()<CR>
" automatically remove trailing spaces when saving a file
autocmd BufWrite * call ClearTrailingSpaces()

@ -0,0 +1 @@
Subproject commit 9c5d51b86bba0d3e70fa5d9ebd7c928bcdd22519