diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-06-13 17:26:45 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-06-13 17:26:45 +0200 |
| commit | bdf61c179b41383b2a0955d3628d6c0648e2a69f (patch) | |
| tree | 02499c23ca6be4571f16a37ac980fa12b7a48fb3 | |
| parent | 7dc6a2759f779fc9bc6f0f080bc06a7d412acc19 (diff) | |
| download | dotfiles-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.vim | 7 | ||||
| -rw-r--r-- | nvim/ftplugin/vim.vim | 2 |
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 @@ | |||
| 1 | autocmd FileType html,css EmmetInstall | 1 | autocmd FileType html,css EmmetInstall |
| 2 | 2 | autocmd VimEnter * NERDTree | wincmd p | |
| 3 | " Start NERDTree when Vim is started without file arguments. | ||
| 4 | autocmd StdinReadPre * let s:std_in=1 | ||
| 5 | autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif | ||
| 6 | |||
| 7 | " Close the tab if NERDTree is the only window remaining in it. | ||
| 8 | autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif | 3 | autocmd 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 @@ | |||
| 1 | lua vim.treesitter.start() | ||
| 2 | |||
| 3 | setlocal tabstop=2 | 1 | setlocal tabstop=2 |
| 4 | setlocal softtabstop=2 | 2 | setlocal softtabstop=2 |
| 5 | setlocal shiftwidth=2 | 3 | setlocal shiftwidth=2 |
