2020-10-30 11:42:15 +01:00
|
|
|
" Listing of paths to ignore. I think I could use something similar to CtrlP
|
|
|
|
" here as well, but I want NERDTree to also show some non-version
|
2021-02-02 10:33:34 +01:00
|
|
|
" controlled files. It ignores the following files:
|
2020-10-23 09:45:55 +02:00
|
|
|
" Vim
|
|
|
|
" Other IDEs
|
|
|
|
" Python
|
|
|
|
" Java
|
|
|
|
" Git
|
|
|
|
" Stack & Haskell
|
|
|
|
" CMake
|
|
|
|
" Non-text files
|
|
|
|
let NERDTreeIgnore = [
|
2020-10-30 11:42:15 +01:00
|
|
|
\ '^\.vim$[[dir]]',
|
|
|
|
\ '^\.vscode$[[dir]]', '.*\.code-workspace$[[file]]', '^\.idea$[[dir]]',
|
2021-02-02 10:33:34 +01:00
|
|
|
\ '^__pycache__$[[dir]]', '^\.pytest_cache$[[dir]]', '^venv$[[dir]]',
|
|
|
|
\ '\.egg-info$[[dir]]', '^dist$[[dir]]', '^build$[[dir]]',
|
|
|
|
\ '^\.eggs$[[dir]]',
|
2020-10-30 11:42:15 +01:00
|
|
|
\ '^out$[[dir]]',
|
|
|
|
\ '^\.git$[[dir]]',
|
|
|
|
\ '^\.stack-work$[[dir]]', '\.lock$',
|
|
|
|
\ '^CMakeFiles$[[dir]]', '^CMakeCache.txt$[[file]]',
|
|
|
|
\ '.pdf$[[file]]']
|
|
|
|
|
2020-10-30 10:54:59 +01:00
|
|
|
" Show files starting with .
|
2020-08-28 09:15:08 +02:00
|
|
|
let NERDTreeShowHidden = 1
|
2020-10-30 10:54:59 +01:00
|
|
|
" Hide 'Press ? for help'
|
|
|
|
let NERDTreeMinimalUI = 1
|
|
|
|
let NERDTreeDirArrows = 1
|
|
|
|
" Close NERDTree after opening a file
|
|
|
|
let NERDTreeQuitOnOpen = 1
|
2020-10-30 11:42:15 +01:00
|
|
|
" Explicitely tell NERDTree to never change my current working directory
|
|
|
|
let NERDTreeChDirMode = 0
|
|
|
|
" Sort naturally, e.g. z10.txt comes after z1.txt
|
|
|
|
let NERDTreeNaturalSort = 1
|
|
|
|
" Show files, not only directories
|
|
|
|
let NERDTreeShowFiles = 1
|
|
|
|
" Don't show line numbers
|
|
|
|
let NERDTreeShowLineNumbers = 0
|
|
|
|
" Show NERDTree on the left side
|
|
|
|
let NERDTreeWinPos = 'left'
|
|
|
|
" Use the minimal menu system
|
|
|
|
let NERDTreeMinimalMenu = 1
|
|
|
|
" Always delete the buffer when you rename the file
|
|
|
|
let NERDTreeAutoDeleteBuffer = 1
|
2020-10-30 10:54:59 +01:00
|
|
|
|
2020-10-30 11:42:15 +01:00
|
|
|
" Open NERDTree on the current file
|
2020-10-30 10:54:59 +01:00
|
|
|
nnoremap <silent> tt :NERDTreeFind<CR>
|