Copy all the lines to clipboard
Use: :%y+ to yank all lines. Explanation: % to refer the next command to work on all the lines y to yank those lines + to copy to the system clipboard NB: In Windows, + and * are equivalent see this answer.
Use: :%y+ to yank all lines. Explanation: % to refer the next command to work on all the lines y to yank those lines + to copy to the system clipboard NB: In Windows, + and * are equivalent see this answer.
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
(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
dos2unix is a commandline utility that will do this, or :%s/^M//g will if you use Ctrl–v Ctrl–m to input the ^M, or you can :set ff=unix and Vim will do it for you. There is documentation on the fileformat setting, and the Vim wiki has a comprehensive page on line ending conversions. Alternately, if you … Read more
Might not be one that 99% of Vim users don’t know about, but it’s something I use daily and that any Linux+Vim poweruser must know. Basic command, yet extremely useful. :w !sudo tee % I often forget to sudo before editing a file I don’t have write permissions on. When I come to save that … Read more
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
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
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
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
Just the $ (dollar sign) key. You can use A to move to the end of the line and switch to editing mode (Append). To jump the last non-blank character, you can press g then _ keys. The opposite of A is I (Insert mode at beginning of line), as an aside. Pressing just the … Read more