Ignore node_modules with :find and nvim and vim guards for cryptmethod and :term
This commit is contained in:
parent
7fde1dbc51
commit
ad6942b1c0
5 changed files with 24 additions and 5 deletions
9
.gitmodules
vendored
9
.gitmodules
vendored
|
@ -10,3 +10,12 @@
|
||||||
[submodule "pack/plugins/opt/onedark.vim"]
|
[submodule "pack/plugins/opt/onedark.vim"]
|
||||||
path = pack/plugins/opt/onedark.vim
|
path = pack/plugins/opt/onedark.vim
|
||||||
url = https://github.com/joshdick/onedark.vim
|
url = https://github.com/joshdick/onedark.vim
|
||||||
|
[submodule "pack/plugins/start/tsuquyomi"]
|
||||||
|
path = pack/plugins/start/tsuquyomi
|
||||||
|
url = https://github.com/Quramy/tsuquyomi.git
|
||||||
|
[submodule "pack/plugins/start/typescript-vim"]
|
||||||
|
path = pack/plugins/start/typescript-vim
|
||||||
|
url = https://github.com/leafgarland/typescript-vim.git
|
||||||
|
[submodule "pack/plugins/start/vim-editorconfig"]
|
||||||
|
path = pack/plugins/start/vim-editorconfig
|
||||||
|
url = https://github.com/sgur/vim-editorconfig
|
||||||
|
|
17
init.vim
17
init.vim
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
" SETTINGS
|
" SETTINGS
|
||||||
|
|
||||||
|
if !has('nvim')
|
||||||
|
setlocal cm=blowfish2
|
||||||
|
end
|
||||||
|
|
||||||
" set relative line numbers
|
" set relative line numbers
|
||||||
set number relativenumber
|
set number relativenumber
|
||||||
|
|
||||||
|
@ -11,17 +15,20 @@ set hlsearch incsearch
|
||||||
" show n-column limiter when textwidth is set
|
" show n-column limiter when textwidth is set
|
||||||
set colorcolumn=+1
|
set colorcolumn=+1
|
||||||
|
|
||||||
" prevent terminal buffers to be closed when changing buffer
|
if has('nvim')
|
||||||
autocmd TermOpen * set bufhidden=hide
|
" prevent terminal buffers to be closed when changing buffer
|
||||||
|
autocmd TermOpen * set bufhidden=hide
|
||||||
|
|
||||||
" remove line numbers to terminale
|
" remove line numbers to terminale
|
||||||
autocmd TermOpen * set nornu nonu
|
autocmd TermOpen * set nornu nonu
|
||||||
|
end
|
||||||
|
|
||||||
" set autoindent on`
|
" set autoindent on`
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
" Make :find work on all files in :pwd
|
" Make :find work on all files in :pwd
|
||||||
set path+=**
|
set path+=**
|
||||||
|
set wildignore+=**/node_modules/**
|
||||||
|
|
||||||
" ADDITIONAL COMMANDS
|
" ADDITIONAL COMMANDS
|
||||||
|
|
||||||
|
@ -35,7 +42,7 @@ nnoremap <F2> noh
|
||||||
" clear trailing spaces with F3
|
" clear trailing spaces with F3
|
||||||
nnoremap <F3> :%s/\s *$//g<CR>
|
nnoremap <F3> :%s/\s *$//g<CR>
|
||||||
|
|
||||||
" show Vim's true competitor with Ctrl-F1
|
" show Vim's true competitor with F4
|
||||||
nnoremap <F4> :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
|
nnoremap <F4> :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
|
||||||
|
|
||||||
" COLORSCHEME
|
" COLORSCHEME
|
||||||
|
|
1
pack/plugins/start/tsuquyomi
Submodule
1
pack/plugins/start/tsuquyomi
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit bdd034d06ed47176ec1ee0bd3dae5bc0aeb053e3
|
1
pack/plugins/start/typescript-vim
Submodule
1
pack/plugins/start/typescript-vim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 0e9d92eead2df21abe342c4341c55536dd36b0af
|
1
pack/plugins/start/vim-editorconfig
Submodule
1
pack/plugins/start/vim-editorconfig
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit f1b81d4c6b6cf1bf91cf5ce33148b2f6bb566a63
|
Reference in a new issue