Skip to content
Magenaut

Magenaut

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

vim

How to get vi keybindings to work in mysql client?

November 15, 2022 by Magenaut

I have vi bindings working in my bash shell using set -o vi in my .bash_profile. But I can’t seem to get them to work in the mysql command line client. I only get emacs style bindings. How do you do this?

Categories MySQL, Q&A Tags command-line, mysql, readline, unix, vim Leave a comment

PHP attributes with Vim

October 25, 2022 by Magenaut

I am using Vim to code in PHP, and I have seen that the attributes syntax (#[...]) is parsed as a comment in the vim syntax highlighting.

Categories PHP, Q&A Tags php, vim Leave a comment

Vim inoremap for specific filetypes

October 17, 2022 by Magenaut

I’ve added some simple inoremap commands to my .vimrc to help with parens and brackets completion, but I only want them to apply to php files.

Categories PHP, Q&A Tags code-completion, php, vim Leave a comment

Correct indentation of HTML and PHP using Vim

October 17, 2022 by Magenaut

I’ve been using Vim for a while, and I can’t get proper HTML indentation working in PHP files.

Categories PHP, Q&A Tags html, indentation, php, vim Leave a comment

How do I open a terminal application from node.js?

October 7, 2022 by Magenaut

I would like to be able to open Vim from node.js program running in the terminal, create some content, save and exit Vim, and then grab the contents of the file.

Categories Node.js, Q&A Tags coffeescript, node.js, readline, terminal, vim Leave a comment

vim : The term ‘vim’ is not recognized as the name of a cmdlet?

September 13, 2022 by Magenaut

I’m following a tutorial on Laravel. I’ve never used it before. The tutorial say I should use create a file with vim database/database.sql but when I do I get the error:

Categories Laravel, Q&A Tags laravel, vim Leave a comment

Running Python code in Vim

August 15, 2022 by Magenaut

I am writing Python code using Vim, and every time I want to run my code, I type this inside Vim:

Categories Python, Q&A Tags python, vim Leave a comment

Copy text from one tmux pane to another (using vim)

August 11, 2022 by Magenaut

I have two files opened in vim, each in one tmux pane. I would like to copy let’s say 10 lines from one file to another.

Categories Q&A, Unix & Linux Tags copy-paste, tmux, vim Leave a comment

How to fix Ctrl + arrows in Vim?

August 11, 2022 by Magenaut

I am using Putty -> Suse box -> vim 7.2 combo for editing and want to remap Ctrl + arrows combo to a particular task. But for some reason, Vim ignores the shortcut and goes into insert mode and inserts character “D” (for left) of “C” (for right).

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

How to scroll large datafile while keeping header

August 11, 2022 by Magenaut

Suppose I have some large datafile, which overflow the screen in both vertical and horizontal direction. How can I browse this file, while the header-lines stay on the screen?

Categories Q&A, Unix & Linux Tags less, pager, scrolling, vim Leave a comment
Older posts
Page1 Page2 … Page5 Next →

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress