Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

Signed-off-by: LIU Hao <>


Failed to load latest commit information.
Latest commit message
Commit time
January 29, 2023 13:18
January 13, 2023 01:12
January 29, 2023 13:18
August 11, 2007 05:17
January 5, 2023 11:50
January 29, 2023 13:18
January 29, 2023 13:18
                -=* GNU nano for Windows *=-


    Here is the source code for a ported, standalone version of GNU nano,
    a famous, easy-to-use and handy text editor on Linux.

    The script "" can be run in MSYS2 with the mingw-w64
    toolchains installed.  That script statically links the executable,
    nano.exe, so that it does not require any third-party .DLL files to run,
    including any Microsoft Visual C++ Redistributable packages.


    + .nanorc is loaded from "%USERPROFILE%\.nanorc" with normal privilege
      and from "%ALLUSERSPROFILE%\.nanorc" with elevated privilege.
    + Systemwide nanorc is loaded from "%ALLUSERSPROFILE%\nanorc".
    + Added C++11 keywords and identifiers with special meaning
      (That is, override and final) in "doc/syntax/c.nanorc".
    + Vim-style locking files have been enabled.

Features Removed

    + Spell checker (This requires the infamous `fork()` syscall. )
    + Stop and continue (This requires the `SIGSTOP` signal. )
    + Native language support (This requires hard-coding the path to
      the directory containing locale files in the executable. )


    + Left `Alt` key can be used as a `Meta` key.
    + UNIX style end-of-line handling by default.
    + Standard-conforming `sprintf()` function from mingw-w64.
    + UTF-8 support with UCRT (This is available only with 64-bit builds
      and requires the 'Beta: Use Unicode UTF-8 for worldwide language
      support' option in Windows 10 Region Settings.)


          GNU nano -- a simple editor, inspired by Pico


    Nano is a small and simple text editor for use on the terminal.
    It copied the interface and key bindings of the Pico editor but
    added several missing features: undo/redo, syntax highlighting,
    line numbers, softwrapping, multiple buffers, selecting text by
    holding Shift, search-and-replace with regular expressions, and
    several other conveniences.


    In rough ASCII graphics, this is what nano's screen looks like:

  |  GNU nano 7.1                  filename                  Modified  |
  | This is the text window, displaying the contents of a 'buffer',    |
  | the contents of the file you are editing.                          |
  |                                                                    |
  | The top row of the screen is the 'title bar'; it shows nano's      |
  | version, the name of the file, and whether you modified it.        |
  | The two bottom rows display the most important shortcuts; in       |
  | those lines ^ means Ctrl.  The third row from the bottom shows     |
  | some feedback message, or gets replaced with a prompt bar when     |
  | you tell nano to do something that requires extra input.           |
  |                                                                    |
  |                       [ Some status message ]                      |
  |^G Help       ^O Write Out  ^W Where Is   ^K Cut        ^T Execute  |
  |^X Exit       ^R Read File  ^\ Replace    ^U Paste      ^J Justify  |


    The nano project was started in 1999 because of a few "problems"
    with the wonderfully easy-to-use and friendly Pico text editor.

    First and foremost was its license: the Pine suite does not use
    the GPL, and (before using the Apache License) it had unclear
    restrictions on redistribution.  Because of this, Pine and Pico
    were not included in many GNU/Linux distributions.  Furthermore,
    some features (like go-to-line-number or search-and-replace) were
    unavailable for a long time or require a command-line flag.  Yuck.

    Nano aimed to solve these problems by: 1) being truly free software
    by using the GPL, 2) emulating the functionality of Pico as closely
    as is reasonable, and 3) including extra functionality by default.

    Nowadays, nano wants to be a generally useful editor with sensible
    defaults (linewise scrolling, no automatic line breaking).

    The nano editor is an official GNU package.  For more information on
    GNU and the Free Software Foundation, please see


    Nano's code and documentation are covered by the GPL version 3 or
    (at your option) any later version, except for two functions that
    were copied from busybox which are under a BSD license.  Nano's
    documentation is additionally covered by the GNU Free Documentation
    License version 1.2 or (at your option) any later version.  See the
    files COPYING and COPYING.DOC for the full text of these licenses.

    When in any file of this package a copyright notice mentions a
    year range (such as 1999-2011), it is a shorthand for a list of
    all the years in that interval.

How to compile and install nano

    Download the latest nano source tarball, and then:

        tar -xvf nano-x.y.tar.gz
        cd nano-x.y
        make install

    You will need the header files of ncurses installed for ./configure
    to succeed -- get them from libncurses-dev (Debian) or ncurses-devel
    (Fedora) or a similarly named package.  Use --prefix with ./configure
    to override the default installation directory of /usr/local.

    After installation you may want to copy the doc/sample.nanorc file
    to your home directory, rename it to ".nanorc", and then edit it
    according to your taste.

Web Page

Mailing Lists

    There are three nano-related mailing-lists.

    * <> is a very low traffic list used to announce
      new nano versions or other important info about the project.

    * <> is for those seeking to get help without
      wanting to hear about the technical details of its development.

    * <> is the list used by the people that make nano
      and a general development discussion list, with moderate traffic.

    To subscribe, send email to <name> with a subject
    of "subscribe", where <name> is the list you want to subscribe to.

    The archives of the development and help mailing lists are here:

Bug Reports

    If you find a bug, please file a detailed description of the problem
    on nano's issue tracker:
    (you will need an account to be able to do so), or send an email
    to the nano-devel list (no need to subscribe, but mention it if
    you want to be CC'ed on an answer).


GNU nano text editor for Windows [WARNING: The master branch is constantly rebased and force-pushed so don't expect it to be steady!! -end WARNING]




GPL-3.0, Unknown licenses found

Licenses found






No packages published