how to change vim default description? - vim

I would like to ask how to change the description in Vim when creating a file, where is the file that is responsible for this?
I'm using windows 10

Related

Auto refresh in Sublime Text 3

I want Sublime Text to auto reload files when they are changed in the hard disk (by some process else). Although I am not expecting to have my code open in different places, I use the editor to see resulting files, which is why this feature is crucial to my coding setup. I’ve figured out the option to prompt for the reload as below. But my issue is, it takes a long time for Sublime Text to realize the file has changed and give me the prompt. The files are in a Linux server and I am accessing them through Samba in Windows. Previously I've used Notepad++ which instantly recognize the change and prompt me to reload - so this is not to do with the file systems or hardware. Is there a way to achieve this in Sublime Text or VSCode?
"always_prompt_for_file_reload": true

How can I programmatically save a Sublime Text 3 workspace (without a dialog box)?

I really want a way to switch programming contexts quickly without hunting for windows that I've left strewn about. What would be nice is a command line tool to let me switch between different patches that I might be working on, and automatically open the sublime text workspace that I had open the last time I was working on that patch. The issue is that in order for the tool to know about the workspaces associated with said patches, it either needs to be told about them explicitly, or it needs to be able to tell sublime to save the current workspace with a specific file path.
Sublime does have a save_workspace_as command, but it opens a saveAs dialog, which is not what I want, and I can't seem to find any documentation that suggests that save_workspace_as can take an argument.
Any ideas?

how to enable soft tabs textmate2

i've seen some other answers to this but my textmate is behaving funny. i can't enable the soft tabs, which is getting annoying now that I'm working with haml. any ideas?
attached screenshot, the softtabs option is greyed out. what am I missing?
thanks,
JD
If you want Soft Tabs enabled everywhere add the following to the .tm_properties file in your home dir. If you don't have it just create one.
If you want to enable it for a specific project only simply create a .tm_properties file in the project dir.
softTabs = true
tabSize = 4
If you want to enable Soft Tab only for certain file types you can add a section to the file like this:
[ *.coffee ]
softTabs = true
tabSize = 2
I would recommend you to check out how these files work. Here is an example by hmans.
Also check out Textmate 2 Tips for more info.
Update
As Michael Sheets writes in his answer, it is now possible to save the change through the GUI.
As of r9290 you can now change the tab settings from the menu at the bottom of the edit window and they will be saved for the current file type and parent file type if applicable.
These are saved into Global.tmProperties which you can read more about in the release notes for r9290 (Help → Release Notes).

Where does notepad++ store style configurator settings?

I downloaded and modified a style file and placed it in the Notepad++ themes folder. I was able to select it and have it update the style as expected. I then went to Settings -> Style Configurator and changed the font of COMMENT of language VHDL to MS Gothic, hit save, and closed and exited Notepad++. I am able to relaunch Notepad++ and still see the change (I'm running Notepad++ in admin mode on Win7).
The only file that I can see a new timestamp on is my XML theme file, but I don't see MS Gothic anywhere in the file. Where is this information being stored? It is overriding the settings from my theme file. I also checked %APPDATA%\Notepad++\stylers.xml but I don't see it there either.
I realize I can change it back through the GUI, but I'd like to know how to get back to my original theme without selecting every style in the language manually (as I've made multiple changes). If I could edit (or delete) a file, I would prefer it.
Look in your %APPDATA%\Notepad++ folder, specifically for the stylers.xml file.
Uninstall Notepad++
Reinstall it again, but this time check the first box, the one that says "Don't use %APPDATA%..... "
Enjoy.
The reason is that Notepad++ install all the files at administrator profile, if you are using another user then you are screw, it will not work properly, you have to run it always as an administrator so it can work properly. To avoid this, just do as i said.
If files are going to APPDATA, then you can create a folder called "themes" and then inside that place your new xml themes. Then close and reopen notepad++ and you should see your new style in the "Select theme:" drop down. Whatever you named the file should be what appears in the dropdown
If you are on Windows 10 the path to add the new theme is :
C:\Users\NAME-OF-COMPUTER\AppData\Roaming\Notepad++\themes
stylers.xml is located one director/ folder above the themes :
Just as a complement to the other answers, if you made the changes on another theme than the default theme (stylers.xml) then your changes are saved to
%APPDATA%\Notepad++\themes\TheThemeYouModified.xml.
For example, if you modified the choco theme, then look for the %APPDATA%\Notepad++\themes\choco.xml.
You will also find a choco.xml in the C:\Program Files (x86)\Notepad++\themes but this one is not where your changes are saved.
I tried Rbastardo answer, but even when I check "Don't use %APPDATA%....." when installing Notepad++, the changes are still saved in %APPDATA%.
In case this helps someone in the future, if you installed Notepad++ via Scoop then look for your themes directory here:
D:\Users\yourusername\scoop\persist\notepadplusplus\themes

How do I add a project manager to Vim?

Thanks for letting me know I can change my posts this way. I am actually done with adding the project manager to my liking but now I am trying to ad snipmate to my plugins now entirely sure how though.
The project plugin needs a project file in your $HOME directory called .vimproject. A sample entry could be as follows on Windows (if you're using linux, replace vimfileswith .vim):
VIMSTUFF="~/vimfiles" CD=. flags=r {
../_vimrc
../_gvimrc
plugin/my_plugin.vim
after/syntax/c.vim
}
This project holds all my vim related files that I created such as my_plugin.vim and after/syntax/c.vim.
To edit the .vimprojects file, open up vim and press F12 which will toggle the project window.
The documentation of the project plugin provides a few samples that will guide you how to start.

Resources