aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/autocmd.vim7
-rw-r--r--nvim/ftplugin/vim.vim2
2 files changed, 1 insertions, 8 deletions
diff --git a/nvim/autocmd.vim b/nvim/autocmd.vim
index 2b35834..5dda3b5 100644
--- a/nvim/autocmd.vim
+++ b/nvim/autocmd.vim
@@ -1,8 +1,3 @@
1autocmd FileType html,css EmmetInstall 1autocmd FileType html,css EmmetInstall
2 2autocmd VimEnter * NERDTree | wincmd p
3" Start NERDTree when Vim is started without file arguments.
4autocmd StdinReadPre * let s:std_in=1
5autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
6
7" Close the tab if NERDTree is the only window remaining in it.
8autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif 3autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
diff --git a/nvim/ftplugin/vim.vim b/nvim/ftplugin/vim.vim
index a67d39a..1054984 100644
--- a/nvim/ftplugin/vim.vim
+++ b/nvim/ftplugin/vim.vim
@@ -1,5 +1,3 @@
1lua vim.treesitter.start()
2
3setlocal tabstop=2 1setlocal tabstop=2
4setlocal softtabstop=2 2setlocal softtabstop=2
5setlocal shiftwidth=2 3setlocal shiftwidth=2