tmux how to scroll two pane like vim scrollbind - file

How to scroll two pane side by side like vim.
In vim I can use scrollbind to scroll two file side by side.
For example:
Open the first file with vim LICENSE
Open another file with :set vsplit LICENSE
Bind the first file with :set scrollbind, then Ctrl+W switch to another file and bind it with :set scrollbind (Unbind is :set noscrollbind)
Then I can scroll the two file with up and down key.

Well it does not limit to scroll, but you can use :setw synchronize-panes in tmux.
http://man.openbsd.org/OpenBSD-current/man1/tmux.1#synchronize-panes
UPDATE: THIS SOLUTION DOES NOT WORK FOR SCROLLING ANYMORE!

Related

I can't see the output screen in vscode

vscode also opens notepad instead of running the code when i click run code while writing the c program.
when I run the c code, the open file with the application section comes out.But the output does not come out.The applications are notepad, word, etc.
I have the code runner.this problem happened later.i can only see the output of 1 or 2 codes.
You can open as many editors as you like side by side vertically and horizontally. If you already have one editor open, there are multiple ways of opening another editor to the side of the existing one:
Alt click on a file in the Explorer.
Ctrl+\ to split the active editor into two.
Open to the Side (Ctrl+Enter) from the Explorer context menu on a file.
Click the Split Editor button in the upper right of an editor.
Drag and drop a file to any side of the editor region.
Ctrl+Enter macOS: Cmd+Enter in the Quick Open (Ctrl+P) file list.

Sublime Text 3 find and replace in multiple files

I want to find and replace code in multiple files.
Does anyone know if the feature "find and replace in multiple files" in Sublime Text 3 is gone?
It used to be a feature for ST2 (shift-command-F), see screenshots ST2 and ST3.
Or is there a other way to do this?
The option is still there, but because you're using a custom theme the bar needs to be taller for you to see the entire contents of the panel.
You can grab the top of the panel and stretch it up so that everything is visible and then back down as far as it will go to make it compact again.
You only have to do this once; Sublime remembers the height of the panel and will use it next time (which is why it uses the incorrect height when you switch to a theme that makes everything in the panel taller).

Docking In Maya 2016

I accidentally undocked the status line and shelf tabs and can't get them attached to the main window the way they were. I can get them to go to the side of the main animation window, but not on top like they were before. I tired reverting settings and such but that doesn't work.
Sounds like you cannot drop them on the top because there is no longer anything there to drop onto in that panel zone.
You can try right clicking over the double dotted line above one of the other panels and see if toggling the interface items there (which include the shelf and status line) brings the items back.
You can also change the window settings programmatically! by editing the windowPrefs.mel file located in
"User/Documents/maya/maya version/prefs".
Finally you can try changing the user preferences (click the little icon of a guy with a gear on its back left of the timeline or menu: Windows>Settings/Preferences>Preferences) where under "UI Elements" the same toggles are available, as well as opening files without using saved layout settings, etc...

Caling upon the smooth all attribute in maya using python or MEL

I am trying to script a setup where the map borders is set to something specific after smoothing the geo in the viewport. I don't know how to call upon that attribute or change it.
It's under smooth mesh - extra controls in the GEOShape of the mesh.
Any ideas?
Mel or Python... I dont care, I just need to know how to reach these? :-)
Open up the Script Editor, and turn on History > Echo All Commands
Also open the Window > General Editors > Attribute Spreadsheet.
From the All tab, find Keep Map Borders.
As you change the radio button between Do not smooth, Smooth internal, and Smooth all, you'll see the value in the Attribute Spreadsheet change between All, Internal, and None.
Type All in the Attribute Spreadsheet, and look over at the Script Editor. You should see this line:
setAttr "pCubeShape1.keepMapBorders" 2;
That is the MEL command that sets Map Borders to Do not smooth

Line underneath my menu bar!

When you create a menu bar, a funny line appears underneath (for XP and Win7 at least). How can I get rid of this line? I know that some applications, such as Firefox and Thunderbird, have done so.
Here's an illustration:
I am programming in C, using the Windows API. My menu is loaded from a resource file.
I'd say that line is supposed to be there (Run a simple application like calc and see) If you look at an application like Explorer (Or IE4-6) in XP, its menu is actually a toolbar inside of a rebar.
If you look at a function like GetMenuBarInfo() you will see there is no border property you can query or set.
If a 1 pixel line is that important, you probably have to A) Do some owner drawing on the menu to paint over that line or B) Implement a custom menu control (MS even has a tutorial for IE/Explorer style menus)

Resources