Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Posts tagged vim

This tag doesn't have any usage information yet.

This tag doesn't have a detailed wiki yet.

66%
+2 −0
Q&A How to enable `Alt + .` in bash with Vim bindings

Want I want Alt-. get the last argument to the last command, as it does in a default bash terminal, when Vim bindings are enabled. Similar to this SO post, but with a bash terminal, not zsh. MW...

1 answer  ·  posted 2mo ago by mcp‭  ·  last activity 2mo ago by Quasímodo‭

60%
+1 −0
Q&A Wrapping comments in Neovim messed up by parentheses

Problem Wrapping comments in Neovim gets messed up in the presence of parentheses. This happens with both auto wrapping and manual wrapping (gw). MWE This is what happens in a Python file (file...

0 answers  ·  posted 3mo ago by mcp‭  ·  edited 2mo ago by mcp‭

60%
+1 −0
Q&A How to trim trailing whitespace in all files except diffs in Neovim

Problem I would like to trim trailing whitespace on save in all files except .diffs using Neovim. Have vim.api.nvim_create_autocmd({ "BufWritePre" }, { pattern = { "*" }, command = [[%s/\s...

0 answers  ·  posted 2mo ago by mcp‭  ·  edited 2mo ago by mcp‭

50%
+0 −0
Q&A Vim horizontal scrollbind skips first scroll if it's the very first interaction

I have a custom spreadsheet viewer in Vim that splits the headers into a top pane and the rest into a bottom pane. I bind horizontal scrolling so that scrolling right keeps the headers above the co...

0 answers  ·  posted 8mo ago by Michael‭

Question vim
71%
+3 −0
Q&A How do I set UTF8 in a Vim modeline?

Occasionally someone* occasionally modifies one of the files I'm responsible for with an archaic tool that decides to convert the updated file to UTF-16 (probably lossless) or an even more archaic...

0 answers  ·  posted 9mo ago by DavidCary‭

80%
+6 −0
Q&A How to indent list items in Vim

Problem How do I indent a list item in Vim the following way? Ideally I want this to happen automatically upon wrap, but will settle for something like ESC TAB doing the trick. Have This is a ...

1 answer  ·  posted 1y ago by mcp‭  ·  last activity 1y ago by tssm‭

Question vim indent
66%
+2 −0
Q&A Vim: Can a different style be applied to a vim-terminal?

I often open an terminal within vim via: :vert term. The terminal opens on the right side with the same style (background and foreground colors) as my vim style. Is it possible to change the styl...

1 answer  ·  posted 1y ago by CodeFarmer‭  ·  last activity 1y ago by Quasímodo‭

Question vim
66%
+2 −0
Q&A How to make selection and overwrite from register all from ex mode

MWE line 1 line 2 line 3 line 4 line 5 line 6 line 7 Go to "line 4": /line 4 ENT. Delete into register: dd. Replace everything with register using only ex mode. (Non-ex equivalent: gg...

1 answer  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by Quasímodo‭

Question vim ex visual
60%
+1 −0
Q&A How to redraw screen putting specific line at top without moving cursor

MWE 5 4 3 2 1 0 Go to the end of the file: G. Question Using spacemacs, how do I put the line with 3 at the top of the screen without moving the cursor? With moving the cursor that wou...

1 answer  ·  posted 2y ago by mcp‭  ·  last activity 2y ago by mcp‭

Question vim spacemacs scroll
62%
+3 −1
Q&A How to jump to original mark after overwriting

MWE In Vim: mm. o ESC mm (by accident, meant mn). Question How do I jump to the original mark m set in action 1.? Edit I'm sorry, what I meant was you issue mm when you meant 'm. (It al...

1 answer  ·  posted 2y ago by mcp‭  ·  edited 2y ago by mcp‭

Question vim mark
83%
+8 −0
Q&A Delete command from Vim's command line history?

Sometimes I accidentally enter a command with a typo in Vim, e.g. :e!fil instead of :e!file. As a consequence, the incorrect command clutters the history until it is evicted from the binary .vi...

1 answer  ·  posted 3y ago by Quasímodo‭  ·  last activity 3y ago by Quasímodo‭

Question vim