NeoVim have :te command to access shell.
:te is short for :terminal.

A Computer Person Journey
NeoVim have :te command to access shell.
:te is short for :terminal.
When we work with vim, usually it will start with our current home directory. If we want to change global working directory of vim to the current edited file, we can do by executing :cd %:p:h and it will show the directory it changed to. To change only for the current window we can do :lcd %:p:h. I like to use :split command to edit minimal 2 file and :lcd will come handy if we will work on multiple directory also.
Thats all. Keep it simple. Step by step.
Lets play with various delete command combination available on vim/ neovim.
Start with blank buffer and place some text on it (with some mistakes we intend to fix).
Here we have 2 identical line with “Line 5” and we plan to delete one of them. Move the cursor to the line to be deleted and press d then d. This wil delete the line.
Continue reading “Vim : Deleting text, Undo”Open a neovim or vim by typing vim or nvim on command prompt and it will show initial state with no file being edited.
Lately im struggling to find how we can access emacs menu bar. Its visible on top of screen but i cant do anything on it. The menu bar can not be clicked by mouse (im installing no x emacs anyway and open it on mate terminal). Alt key will access mate terminal menu bar … hmm so i cant use alt key. Later i tried Esc key and its work. Press Esc then release, then press ` (backtick, key below Esc) and voila prompt will show on the bottom screen. We can browse using arrow key or page up to go to page containing menu link above the prompt. Press enter to execute selected menu or link. Its better not to memorize Emacs key binding and use menu, isnt it ?
Minimum Profit is a text editor for programmer available to download from https://triptico.com/software/mp.html. I accidentally found this software from article related to OpenBSD and the author is the creator of this mp editor. The downloads are available in source and windows executable (Wow).
I managed to compile mp 5.38 on debian 10 using ncursesw driver which is already available on my laptop. Compilation step as follow.
Continue reading “Minimum Profit : A Programmer Text Editor”
Emacs is an editor, but not just it. Thats what i read on internet. Emacs like in a battle with Vim, another editor. I have play with vi so many years ago, but with emacs it is just recently i learned to use it basic function.
Install it on ubuntu we can choose GUI or terminal version. I like the terminal version because it will be handy during my engagement with VM/Cloud which only can use terminal to manage it.
Open Emacs by typing on terminal emacs and press enter, it will show a welcome page like below.
We can move cursor to a hyperlink and press enter to go to particular subject, like tutorial or manual. Tutorial can also accessed using key combination C-h t, which mean press Ctrl and hold then press h, release keys, then press t. C is Ctrl and M is Meta (Alt/Esc).
Continue reading “Playing with Emacs – Open file, edit, save file.”
Unix alike system have ed for editing text file which is i feel strange at first. I learned some time ago to create small text file out of curiosity.
Lets try by creating a text file containing 3 lines.
Here we will show in a terminal.
jEdit is a java based editor for programmer, so it will run on many platform : windows, linux, mac.
First download jEdit installer from the web.
I choose to download java based installer and start it on my windows based laptop.
After a while a dialog will show up.