![]() Try it out, and enjoy the simplicity of intuitive editing. It’s easy to use and provides all the functionality you expect from a text editor. GNU nano is a no-nonsense, straightforward text editor. You can get a list of all available functions in the GNU nano documentation. Make sure you actually have vim installed before trying to set it as your default editor. You can also create your own key bindings, so if you want to use Ctrl+V to paste instead of nano’s default Ctrl+U, you can change the binding assigned to the paste function: bind ^V paste all In recent versions of Ubuntu you use the alternatives system to manage the default, editor, e.g.: update-alternatives -set editor /usr/bin/vim.basic To see which editors are available for use: update-alternatives -list editor Some UNIX distributions might provide a select-editor command: select-editor And it will ask you which editor to use. In this file, you can set global preferences, including word wrap settings, color schemes, line numbering, and more. ![]() Nano isn’t as extensible as Emacs or Vim, but you can make some significant customizations in a file called ~/.nanorc. Here are the most common editing commands: Here are the most important application commands: More functions are available by pressing Ctrl+G for Get Help. At the bottom of the screen, there’s a list of functions and their corresponding keyboard shortcuts. When you launch it, nano opens to either an empty buffer or the file you opened. ![]() Nano is, with just a little reading, pretty self-explanatory. ![]()
0 Comments
Leave a Reply. |