Added more specific NERDTree settings
parent
4db625188e
commit
2b99cbd549
|
@ -1,3 +1,6 @@
|
||||||
|
" 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
|
||||||
|
" controlled files
|
||||||
" Vim
|
" Vim
|
||||||
" Other IDEs
|
" Other IDEs
|
||||||
" Python
|
" Python
|
||||||
|
@ -7,14 +10,16 @@
|
||||||
" CMake
|
" CMake
|
||||||
" Non-text files
|
" Non-text files
|
||||||
let NERDTreeIgnore = [
|
let NERDTreeIgnore = [
|
||||||
\ '^\.vim$',
|
\ '^\.vim$[[dir]]',
|
||||||
\ '^\.vscode$', '.*\.code-workspace$', '^\.idea$',
|
\ '^\.vscode$[[dir]]', '.*\.code-workspace$[[file]]', '^\.idea$[[dir]]',
|
||||||
\ '^__pycache__$', '^\.pytest_cache$', '^venv$', '\.egg-info$', '^dist$', '^build$', '^\.eggs$',
|
\ '^__pycache__$[[dir]]', '^\.pytest_cache$[[dir]]', '^venv$[[dir]]', '\.egg-info$[[dir]]', '^dist$[[dir]]',
|
||||||
\ '^out$',
|
\ '^build$[[dir]]', '^\.eggs$[[dir]]',
|
||||||
\ '^\.git$',
|
\ '^out$[[dir]]',
|
||||||
\ '^\.stack-work$', '\.lock$',
|
\ '^\.git$[[dir]]',
|
||||||
\ '^CMakeFiles$', '^CMakeCache.txt$',
|
\ '^\.stack-work$[[dir]]', '\.lock$',
|
||||||
\ '.pdf$']
|
\ '^CMakeFiles$[[dir]]', '^CMakeCache.txt$[[file]]',
|
||||||
|
\ '.pdf$[[file]]']
|
||||||
|
|
||||||
" Show files starting with .
|
" Show files starting with .
|
||||||
let NERDTreeShowHidden = 1
|
let NERDTreeShowHidden = 1
|
||||||
" Hide 'Press ? for help'
|
" Hide 'Press ? for help'
|
||||||
|
@ -22,5 +27,20 @@ let NERDTreeMinimalUI = 1
|
||||||
let NERDTreeDirArrows = 1
|
let NERDTreeDirArrows = 1
|
||||||
" Close NERDTree after opening a file
|
" Close NERDTree after opening a file
|
||||||
let NERDTreeQuitOnOpen = 1
|
let NERDTreeQuitOnOpen = 1
|
||||||
|
" 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
|
||||||
|
|
||||||
|
" Open NERDTree on the current file
|
||||||
nnoremap <silent> tt :NERDTreeFind<CR>
|
nnoremap <silent> tt :NERDTreeFind<CR>
|
||||||
|
|
Reference in New Issue