Let say I have messed up my vim & tmux configuration. Is it possible to delete or reset them without losing any configuration changes such as PATH etc? If so, then how?
how to reset Vim & TMUX dotfiles
529 Views Asked by Kris MP At
1
There are 1 best solutions below
Related Questions in VIM
- Firefox vim mode, can't switch to normal mode in style editor
- How to skip a command in redo
- Vim errorformat multiline string
- How to let Vim tell the switching across several `gvim.exe` processes?
- match wordchar and/or dot string of anylength
- augment the number of lines on indent
- Barebones vim with `nocp`
- Moved .vimrc in a new dir, trying to get it to work
- Copying text from gvim editor to system clipboard works only once per session
- Temporarily declare a word as wrong in vim spellchecker
- Automatically switch back to NerdTree after pressing "o" on file
- How to use Ctags to list all the references of a symbol(tag) in vim?
- Vim + Airline + Linux sloppy exit
- How to delete a WORD in vim in insert mode
- Prevent single letter deletes to spam clipboard manager
Related Questions in TERMINAL
- Do executable files always open a terminal window on MacOS?
- C++: Re-use line printed to console
- How to enable branch hints in Mac OS git?
- When was a file used by another program
- Autocompletion does not work in R terminal inside square brackets
- How to get Mouse support for dtterm terminal in solaris
- Creating Rails Controller In Sub-directory
- Force the terminal output buffer to flush
- How to detect what terminal people use
- How to stop the iPython notebook to run the command line, run only python code
- How to find and show all the information in a text file
- Updating folder structure with Mac Terminal
- Why is it slower to print directly to console/terminal than redirecting?
- Where can I read the ANSI terminal standard?
- How to get C-` key combo recognized in Emacs under Mac?
Related Questions in OSX-LION
- Cannot install XCode 4.3.2 on 10.7.5 running on VMWare Fusion 7.1.1
- how to reset Vim & TMUX dotfiles
- "subl" command not working properly
- Can someone please explain to me why I get a different output when I run the same command from Java
- Porting C# mono from windows to mac
- AppleScript: Get list of windows on all desktops
- Accidentally deleted all files by rm - rf /* ... In my macbook pro
- CoreData dynamically create db
- Install Ruby 2.0.0 on an old Mac OS 10.7.5 Lion
- libmicrohttpd ./configure: pthreads not supported (osx)
- install meld on mac lion with macport
- AVFoundation on OSX: OpenGL texture from video WITHOUT needing access to pixel data
- Python installation missing a lot of things on Mountain Lion
- strange chromedriver fail on os x lion
- Initial build error on first project after installing Android Studio .2 on Mac Air
Related Questions in TMUX
- TMUX using HJKL to navigate panes
- tmux + emacs : ctrl is not reconized
- How to automatically name session in tmux?
- PHP tmux and screen dont behave correctly (no launch, no new session, no new windows)
- TMUX borders are broken iTerm2
- tmux vim-like scrolling rendering issue
- Go root, create tmux, send commands and then attach - all via a single SSH command in a bash script
- how to open file in another pane in Tmux
- OSX tmux configuration session open file in vim automatically
- Creating tmux layout with ZSH scripts
- Save tmux status is possible?
- tmux: Why I need to unbind the [ key before bind the Escape key to copy-mode
- how to reset Vim & TMUX dotfiles
- bash script - how to execute command after starting new tmux session
- How do you copy from tmux (copy mode) running on a remote ssh connection to your local clipboard
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
At this point? There probably is no way to get those files back. But, as a preventative measure in the future, keep config files like those in some sort of version-control system (like git or mercurial).
However, if this is too tedious or you don't want to for whatever reason, you can also add the following lines to your .vimrc:
Don't forget to
mkdir ~/.vim/undodir.This configuration enables persistent undo history in vim (I assume you're using vim to edit these files). With this feature, even after you close the file, and reopen it, you can still undo changes you made in the previous editing session. So if you'd had this set, your problem would be solved simply by hitting
uuntil the files were in a good state. See:help undofilefor more info.Also, check out the great plugin
vim-mundo. It provides a visual "undo tree" and makes browsing vim's complicated undo history very easy. Plus it's compatible with neovim.