aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2024-06-13 17:26:45 +0200
committerThomas Schmucker <ts@its1.de>2024-06-13 17:26:45 +0200
commitbdf61c179b41383b2a0955d3628d6c0648e2a69f (patch)
tree02499c23ca6be4571f16a37ac980fa12b7a48fb3
parent7dc6a2759f779fc9bc6f0f080bc06a7d412acc19 (diff)
downloaddotfiles-bdf61c179b41383b2a0955d3628d6c0648e2a69f.tar.gz
dotfiles-bdf61c179b41383b2a0955d3628d6c0648e2a69f.tar.bz2
dotfiles-bdf61c179b41383b2a0955d3628d6c0648e2a69f.zip
Setze den Cursor in das 'richtige' Fenster bei Verwendung von Nerdtree
-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