Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

vim

What causes swap files to be created?

August 7, 2022 by Magenaut

As part of the program I wrote, I constantly read and write data from files. I noticed that as part of doing so, I am inadvertently creating swap .swp files.

Categories Q&A, Unix & Linux Tags linux, vim Leave a comment

Advantages of using set -o vi

August 7, 2022 by Magenaut

I have seen many developers using this command to set the option to vi. I never understood the real use of this?

Categories Q&A, Unix & Linux Tags bash, vi, vim Leave a comment

How to automatically strip trailing spaces on save in Vi and Vim?

August 7, 2022 by Magenaut

Is there a .vimrc setting to automatically remove trailing whitespace when saving a file?

Categories Q&A, Unix & Linux Tags editors, vi, vim, vimrc, whitespace Leave a comment

Is it possible to have vim key bindings in terminal?

August 7, 2022 by Magenaut

I’m getting used to vim bindings (like pressing w to go to word, dw to delete a word, and such) and it’s modes (insert, normal, visual), and, out of curiosity would like to know: is there some kind of implementation of this behaviour of modes and bindings from vim to my terminal?

Categories Q&A, Unix & Linux Tags bash, shell, terminal, vim, zsh Leave a comment

Stop vim pasting selections as text!

August 7, 2022 by Magenaut

I have been using VI and VIM for years (30 or more) (in xterms, not its own window, gvim) and I have a huge library of vim commands that I give vim using the mouse middle button as a selection.

Categories Q&A, Unix & Linux Tags mouse, vim, vimrc Leave a comment

Can vim display ASCII characters only, and treat other bytes as binary data?

August 7, 2022 by Magenaut

I already know vim -b, however, depending on the locale used, it displays multi-byte characters (like UTF-8) as single letters.

Categories Q&A, Unix & Linux Tags ascii, binary, character-encoding, unicode, vim Leave a comment

Vim :s replace first N < g occurrences on a line

August 7, 2022 by Magenaut

In vim, I sometimes have occasion to replace the first few occurrences of a match on a line, but not every one like g would. e.g.:

Categories Q&A, Unix & Linux Tags replace, search, vim Leave a comment

Extend Default Configuration of vim

August 6, 2022 by Magenaut

I’ve been using the default configuration of vim for a while and want to make a few changes. However, if I edit ~/.vimrc it seems to overwrite all other configuration settings of /etc/vimrc and such, e.g. now there is no syntax highlighting. Here is what vim loads:

Categories Q&A, Unix & Linux Tags configuration, vim Leave a comment
Newer posts
← Previous Page1 … Page3 Page4
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress