Vim is a good text editor my vimrc is avalable. It's also listed here:
"take indent for new line from previous line
set autoindent
""dark" or "light", used for highlight colors
set background=light
"!keep backup file after overwriting a file
set nobackup
"how backspace works at start of line
set backspace=indent,eol,start
"number of columns in the display
if has("gui_running")
set columns=80
endif
"behave Vi-compatible as much as possible
set nocompatible
"list of flags for how to display text
set display+=lastline "as much as possible of the last line in a window
set display+=uhex "Show unprintable characters hexadecimal as $
"use spaces when is inserted
set expandtab
"ring the bell for error messages
set noerrorbells
"make gvimdiff wide
if (has("gui_running") && &foldmethod == 'diff')
set columns=151
map :q :qa
endif
"type of file, used for autocommands
filetype plugin on
"GUI: Name(s) of font(s) to be used
set guifont=Monospace\ 10
"GUI: Which components and options are used
set guioptions-=T "Toolbar
set guioptions-=t "tearoff menu items.
"number of command-lines that are remembered
set history=50
"highlight matches with last search pattern
set hlsearch
"highlight match while typing search pattern
set incsearch
"ignore case in search patterns
set ignorecase
"tells when last window has status lines
set laststatus=2 "always
"wrap long lines at a blank
set linebreak
"number of lines in the display
if has("gui_running")
set lines=50
endif
"enable the use of mouse clicks
"set mouse=a "Normal mode, Visual mode, Insert mode, Command-line mode
"changes meaning of mouse buttons
set mousemodel=popup_setpos
"print the line number in front of each line
"set number
"
"controls the format of :hardcopy output
set printoptions=paper:a4
"set printoptions=paper:a4,left:5pc,duplex:long
"set printdevice=fiitx3e
"show cursor line and column in the status line
set ruler
"show (partial) command in status line
set showcmd
"briefly jump to matching bracket if insert one
set showmatch
"number of spaces that uses while editing
set softtabstop=8
"enable spell checking
"set spell
"language(s) to do spell checking for
set spelllang=en_gb
"syntax to be loaded for current buffer
syntax on
"maximum width of text that is being inserted
set textwidth=0
"use .viminfo file upon startup and exiting
set viminfo='20,\"50
"use menu for command line completion
set wildmenu
"long lines wrap and continue on the next line
set wrap
"set nowrap
"map up, down, home and end keys in normal
map gk
map gj
map g
map g
"map up, down, home and end keys in insert mode
imap gk
imap gj
imap g
imap g
"Make p in Visual mode replace the selected text with the "" register.
vnoremap p :let current_reg = @"gvdi=current_reg
"characters for displaying in list mode
"set listchars=extends:>,precedes:<
"highlight WhitespaceEOL ctermbg=lightgray guibg=lightgray
"match WhitespaceEOL /s+$/
© copyright Thomas Stewart