Installing Vintageous Package - sublimetext3

I'm trying to install the Vintageous package so that I can use Vim commands in Sublime. I downloaded the Vintageous.sublime-package file and added it to the Installed Packages folder, as I was told to do here: https://github.com/guillermooo/Vintageous#vintageous.
Then I restarted Sublime, reopened it, and pressed Esc to enter command mode. Nothing happened -- Sublime is still behaving like it was before.
What am I doing wrong?
Here is my "Preferences.sublime-settings --User" file:
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"create_window_at_startup": true,
"draw_white_space": "all",
"find_selected_text": true,
"font_size": 19,
"ignored_packages":
[
"ANSIescape",
"BeautifyRuby",
"Cucumber",
"Javascript Beautify",
"OmniMarkupPreviewer",
"PackageResourceViewer",
"Pretty JSON",
"ProductiveSnippetsRuby",
"SublimeCodeIntel",
"Sublimerge Pro",
"Vintage",
"WordHighlight"
],
"move_to_limit_on_up_down": false,
"open_files_in_new_window": false,
"scroll_past_end": true,
"show_full_path": true,
"tab_size": 2,
"translate_tabs_to_spaces": true
}

I would suggest you to use the Sublime Package Manager instead.
It's extremely easy.
Copy and paste the snippet you find in the installation page, and then you paste it in the Sublime console (Ctrl + `)
After that, you can simply press Ctrl + Shift + P, type in Install Package, press Enter, and then type Vintageous
The package should appear in the list
Press Enter
After you restart Sublime, it should be working

Related

After installation of Sublime 4 wrong order of search in files results - reverse instead of ABC, how to solve?

After installation of Sublime 4 it shows the search results (multiple files search) in reverse order instead of ABC.
Can't find any solution in Google. Even tried to change settings manually Preference -> Key bindings:
[
{ "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
{ "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files", "reverse": false} }
]
but without result:
Searching 729 files for "veh.category"
/home/me/Projects/mycompany/myproject/app/views/veh/_fm_form.html.haml:
/home/me/Projects/mycompany/myproject/app/views/veh/_form.html.haml:
/home/me/Projects/mycompany/myproject/app/views/veh/_veh.html.haml:
/home/me/Projects/mycompany/myproject/app/views/events/_veh.html.haml:
7 matches across 5 files
Link to Sublime Forum on forum.sublimetext.com
Link to Git Sublime Issues Forum on https://github.com/sublimehq/sublime_text/issues/4700
P.S.
Ubuntu 20.04
Sublime 4107
I encounter the same problem. I thought the order is reversed, but now I think it is even unordered. Maybe it is sorted now by last modified date?
I would be interested in a solution, too.
A workaround is as follows:
use version 3 and version 4 parallel:
see https://www.sublimetext.com/docs/side_by_side.html
downloaded Sublime Text 3 and put in application folder
https://www.sublimetext.com/3
renamed Sublime Text.app to Sublime Text 3.app
created /Users/<Username>/Library/Application Support/Sublime Text 4
renamed /Users/<Username>/Library/Application Support/Sublime Text to : /Users/thomasglaser/Library/Application Support/Sublime Text 3
when starting Sublime Text 3 there was an error popup Error loading syntax file "Packages/JSON/JSON.sublime-syntax": Unable to read Packages/JSON/JSON.sublime-syntax
see https://forum.sublimetext.com/t/error-loading-syntax-file-json-error/25611/6
closed all open workspaces and projects thus tabs or windows
because of that there was the line
“syntax”: “Packages/JSON/JSON.sublime-syntax”
in file
/Users/<Username>/Library/Application Support/Sublime Text 3/Local/Session.sublime_session
after restarting sublime Text 3 no error popup came again
get rid of 'Update Availabel' Popup
see https://forum.sublimetext.com/t/how-do-i-disable-update-checks/43492/7
add line {"update_check": false,} to Preferences.sublime-settings
maybe this works only for licensed accounts

"SublimeAutoPep8: some issue(s) were not fixed" such as E501

I'm getting a soft warning in Python:
SublimeAutoPep8: some issue(s) were not fixed:
File "/Library/WebServer/dir/dir/filename.py", line 11: not fixed E501
File "/Library/WebServer/dir/dir/filename.py", line 33: not fixed E501
My current AutoPep8.sublime-settings is:
{
"format_on_save": true,
"max-line-length": 100,
}
I've tried adding the following config in Preferences.sublime-settings:
"pep8": {
"#disable": false,
"args": [],
"excludes": [],
"ignore": [ "E251", "W291", "E501" ],
"max-line-length": null,
"select": ""
},
doesn't seem to be right though.
What should I do to ignore these warnings? Thank you!
Firstly you should not be adding your AutoPep8 settings in Preferences.sublime-settings instead they should all be added to the AutoPep8.sublime-settings file which should be located in your Sublime Text User config directory.
Secondly I think you may have muddled up the settings of 2 different Sublime Text packages, those being Auto​PEP8 and Python PEP8 Autoformat. Given the warning message you mention it seems reasonable to assume you installed AutoPep8 but the settings you show are a combination of the 2 packages, see the default AutoPep8.sublime-settings file and the default pep8_autoformat.sublime-settings file. Both packages have an ignore setting but the Python PEP8 Autoformat package expects a list of strings, which is what you used, while the AutoPep8 package expects a string of comma separated values, which is what I think you should have used.
You should be able to open your user AutoPep8.sublime-settings file using the Sublime Text menu:
Menu --> Preferences --> Package Settings --> AutoPep8 --> Settings – User
I suggest you try these AutoPep8.sublime-settings settings:
{
"format_on_save": true,
"max-line-length": 100,
// Crucially "ignore" uses a string with comma
// separated values and not a list of strings.
"ignore": "E251, W291, E501"
}

Indenting multilines/block with vscode and vim plugin

This is already on the site, but it doesn't work for me. I'm not 100% sure the answer is responsive to my situation (the question asks about vim "mode"). If it is, the context for the accepted answer isn't obvious for me.
I assume were supposed to splice the json fragment
{
"key": "shift+tab",
"command": "outdent",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
}
into our settings but it's not clear how or where. The app has a settings.json, a keybindings.json and the plugin has package.json.
I got this to work in vim itself a year or so ago IIRC, but it took a plugin and a couple of settings.
Edit to add: ctrl+[ and ctrl+] aren't functional for me. Presumably they would be w/o the vim plugin, but the plugin overrides the ctrl commands.
Just as in normal vim, typing >> and << in normal mode or > and < in visual mode will indent and un-indent lines, respectively.
Source: https://vim.fandom.com/wiki/Shifting_blocks_visually
Also: https://stackoverflow.com/a/235841/7007605
If you are using the main Vim (VSCodeVim), the standard m>, m<, :m,n>, :m,n< are not supported (see https://github.com/VSCodeVim/Vim/issues/3733).
However, this feature is supported by the Neo Vim VS Extension (asvetliakov.vscode-neovim). Note that if you go this route, you do need to install neovim (>v0.5.0) separately, which you can obtain at https://github.com/neovim/neovim/releases/nightly. Then set the path to the neovim executable/binary in the Neo Vim VS extension settings.
I remaped < and > in normal mode to ident lines while using the VSCode commands:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<"],
"commands" : ["tab"]
},
{
"before": [">"],
"commands" : ["outdent"]
}
]

Sublime Text breaks after tree view refreshment and requires an OS reboot to work again (Linux)

I'm currently struggling with a bug(?), which completely breaks Sublime after some time of using it and requires a complete OS reboot to make it work again. The only correlation I found so far is that this always happens whenever a tree view refreshment is triggered (either manually or by creating or deleting a file or directory). Though, it also happened once when I hit tabulator for auto completion, so I'm not quite sure.
The first time this happened was after I opened a very large SQL file by mistake and killed the process, because, you know, Sublime and large files.
I already tried deleting the session files, but that didn't change anything.
I have absolutely no idea what this could be about, so I'd be very thankful for any kind of ideas, that could lead to the right direction.
Operating System: Arch Linux. Maybe that's of some relevance, I don't know. I'm using the official stable channel for pacman, though.
Package Control / Packages: A File Icon, AdvancedNewFile, Alignment, All Autocomplete, Autoprefixer, Case Conversion, CodeFormatter, Color Highlighter, CSScomb, DocBlockr, Emmet, FileDiffs, Git, GitGutter, Grunt, HTML-CSS-JS Prettify, Inc-Dec-Value, jQuery, Less, Local History, MarkdownEditing, Material Theme, Package Control, PHP-Twig, PyV8, Sass, SFTP, SideBarEnhancements, SQLTools, SublimeCodeIntel, SublimeLinter, SublimeLinter-php, Sublimerge 3, Symfony2 Snippes, Terminal, Xdebug Client, zzz A File Icon zzz
Settings:
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"dictionary": "Packages/Language - English/en_US.dic",
"ensure_newline_at_eof_on_save": true,
"font_options":
[
"gray_antialias"
],
"font_size": 10,
"ignored_packages":
[
"Markdown",
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"line_padding_bottom": 3,
"line_padding_top": 3,
"material_theme_bright_scrollbars": true,
"overlay_scroll_bars": "enabled",
"remember_full_screen": true,
"rulers":
[
80,
120
],
"show_encoding": true,
"show_line_endings": true,
"theme": "Material-Theme.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}

Sublime Text 3 on Ubuntu: custom keybinds in packages

Problem
My problem is that the custom keybindings that I assign in Sublime Text 3 on Ubuntu are not registered. In my case, I am trying to set them for commands in the 'MarkdownPreview' package.
Setup
I have the following setup:
Ubuntu 16.04
Sublime Text 3 (build 3126)
MarkdownPreview package
Details
My MarkdownPreview.sublime-settings looks as follows (User settings):
[
{"keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"}},
{"enable_mathjax": true}
]
I have already opened the console and set sublime.log_input(True) and sublime.log_commands(True).
The output in the console when pressing alt+m does show the event being registered, but no command is trigged. See this console excerpt:
key evt: backspace
command: left_delete
key evt: alt+m
key evt: control+c
command: copy
I can run the command from the command palette and the "enable_mathjax": true setting works fine
The reason this doesn't work for you is that you've put the key binding in the preferences for the package instead of in the key binding file, where Sublime can't see it.
The mathjax setting you have should be in your MarkdownPrevious.sublime-settings file, as that's a setting for the package. So that file should look like this:
{
/*
Enable or not mathjax support.
*/
"enable_mathjax": true
}
With that done, you want to select Preferences > Key Bindings (or if you're using an older version of sublime, Preferences > Key Bindings - User) and put your key binding in that file:
[
{
"keys": ["alt+m"], "command": "markdown_preview",
"args": {
"target": "browser",
"parser":"markdown"
}
},
]
This shows the complete contents of the key bindings file with only this single key binding. If you have any other custom key bindings, add this to your file without the [ and ] surrounding it (as they will already be in the file).

Resources