ncurses based eFTE editor – programmers lightweight editor

2014-11-17 1 min read Fedora Learning
nefte is a lightweight programmers editor. Here is descriptioin: Description : eFTE is an advanced programmers editor with goals of being lightweight, yet : totally configurable. Support for user defined programming languages, menu : systems and key bindings are provided with many common defaults already : defined. eFTE is still a new project, however, we extend from the FTE editor : which was first released in 1995, so eFTE is tried and true with many features : for the programmer/text editor. Continue reading

vim – yank/xopy in different register to paste

2014-01-16 1 min read Vim Tips
Very quick update, to use registers, you can select and then yank in a register to paste using the same register. This could be a convinient way to copy multiple selections and then paste which ever selection you want. Here is the simple way to do it: visuallly select with v/V then “qy to yank (here we are yanking into register q, so in the command you can use any of a-z to use as register) Continue reading

Check all vim colorschemes for minor issues

2013-10-10 2 min read bash Vim Tips
Here is script that checks all the colorschemes in the current directory and corrects them if possible (Processing of the file is done with simple commands like sed, grep) Checks that the color_name is same as Filename Here is the script: #!/bin/bash - #=============================================================================== # # FILE: check_colors.sh # # USAGE: ./check_colors.sh # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), # REVISION: --- #=============================================================================== cd ~/. Continue reading

vim maps – simple commands to do stuff.

2013-08-28 1 min read Vim Tips
Some time back, I was working on some script for logging and I wanted to change the class to function like this: $logger->Debug("Test string"); loggerFunc("Debug", "Test String"); As you can see, this change could be quite frustrating if you have quite a few references. And thus vim comes to rescue. Simple map like :: :map ,mm :s/(.*)$logger->(.*)((.*)).*/1loggerFunc("2",3);/ and then I can do “/$logger->” and then “n” to go to next match. Continue reading

Vim – Why and where am I getting these errors from?

2013-05-15 1 min read Vim Tips
If you have got this question in your mind, then you are in right place. vim -V20 2>&1 |tee You can give the debugfile as any file, where you would want to log the debug messages. This will log a lot of information in the debugfile, you can open the file, once you have got the error in the main vim window. After this, you can open the debugfile and simply search for the error that you were getting. Continue reading

vim mappings for multiple files.

2012-08-06 1 min read Vim Tips
If you open multiple files in vim with command line option. Then the only way to move between the files is “:n” and “:N”. There is a easier way to do this. Just add mappings for this in vimrc. Here is what you can use. map :N map :n And if you want to make sure that you move to the prev or next file after saving the file, then you modifyt the mapping like this: Continue reading
Older posts