How do I edit a file after I shell to a Docker container?

As in the comments, there’s no default editor set – strange – the $EDITOR environment variable is empty. You can log in into a container with: docker exec -it <container> bash And run: apt-get update apt-get install vim Or use the following Dockerfile: FROM confluent/postgres-bw:0.1 RUN [“apt-get”, “update”] RUN [“apt-get”, “install”, “-y”, “vim”] Docker images … Read more

Differences between Emacs and Vim

(the text below is my opinion, it should not be taken as fact or an insult) With Emacs you are expected to have it open 24/7 and live inside the program, almost everything you do can be done from there. You write your own extensions, use it for note-taking, organization, games, programming, shell access, file … Read more

How to make vim paste from (and copy to) system’s clipboard?

Be aware that copying/pasting from the system clipboard will not work if :echo has(‘clipboard’) returns 0. In this case, vim is not compiled with the +clipboard feature and you’ll have to install a different version or recompile it. Some linux distros supply a minimal vim installation by default, but if you install the vim-gtk or … Read more

Text editor to open big (giant, huge, large) text files [closed]

Free read-only viewers: Large Text File Viewer (Windows) – Fully customizable theming (colors, fonts, word wrap, tab size). Supports horizontal and vertical split view. Also support file following and regex search. Very fast, simple, and has small executable size. klogg (Windows, macOS, Linux) – A maintained fork of glogg. Its main feature is regular expression … Read more

What IDE to use for Python? [closed]

Results Spreadsheet version Alternatively, in plain text: (also available as a a screenshot) Bracket Matching -. .- Line Numbering Smart Indent -. | | .- UML Editing / Viewing Source Control Integration -. | | | | .- Code Folding Error Markup -. | | | | | | .- Code Templates Integrated Python Debugging … Read more

How do I duplicate a line or selection within Visual Studio Code?

The commands your are looking for are editor.action.copyLinesDownAction and editor.action.copyLinesUpAction. You can see the associated keybindings by picking: File > Preferences > Keyboard Shortcuts Windows: Shift+Alt+Down and Shift+Alt+Up Mac: Shift+Option+Down and Shift+OptionUp Linux: Ctrl+Shift+Alt+Down and Ctrl+Shift+Alt+Up (Might need to use numpad Down and Up for Linux) Furthermore, commands editor.action.moveLinesUpAction and editor.action.moveLinesDownAction are the ones to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)