Small improvements
This commit is contained in:
parent
45ee08debe
commit
a5985f47ee
3 changed files with 9 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
|
||||
|
|
6
init.vim
6
init.vim
|
@ -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()
|
||||
|
|
1
pack/plugins/start/gitignore.vim
Submodule
1
pack/plugins/start/gitignore.vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 9c5d51b86bba0d3e70fa5d9ebd7c928bcdd22519
|
Reference in a new issue