Browse Source

No longer set the current directory to the file opened, but leave it where we started so we can properly use the find function

bananicorn 5 years ago
parent
commit
f873a5d49a
1 changed files with 4 additions and 3 deletions
  1. 4 3
      .vimrc

+ 4 - 3
.vimrc

@@ -5,6 +5,10 @@ set nocompatible
 "in this case in the folder .vim in home
 set packpath+=~/.vim
 
+"lets vim search for files to open recursively
+"for use with the find command
+set path+=**
+
 "turn off the taskbar in gvim
 set guioptions-=m
 
@@ -82,9 +86,6 @@ set undofile
 set ignorecase
 set smartcase
 
-"set the current working directory when entering a new file
-autocmd BufEnter * silent! :lcd%:p:h
-
 "remove all trailing whitespace on lines with non-whitespace characters
 " autocmd BufEnter * silent! :call <SID>StripTrailingWhitespaces()