Do you easily get distracted when you are writing with social media, your cellphone, etc.? This is a list of free apps to help you stay focused on your writing. You may also want to read our article How to enter the flow state.
Vim modes: insert (i), commandn (:), visual (v). Move in the text: Arrows keys or H (left) J (down) K (up) L (right). You can type x to delete a character, dd an entire line, d$ delete from current position to the end of the line or type u to undo the last change. You may want to copy from the clipboard: Ctrl + Shift + V.
Useful commands: :w save, :wq save and quit, :q! exit without saving, !python mySourceFile.py (run it). Copy and Paste: yw (yank word, copy) + p (put), yy (yank an entire line, copy) + p(put) or y$ (yank to the end of the current line) + p. Search: **/**text, n (next instance).
set encoding=utf-8 " Sets how vim shall represent characters internally. Utf-8 is necessary for most flavors of Unicode. syntax enable " Enables syntax highlighing. set noswapfile " Disabling swap files. set scrolloff=7 " There are always at least 7 lines visible above and below the cursor. " Allow backspacing work like in most other programs set backspace=indent,eol,start set tabstop=4 " The width of a tabstop. set softtabstop=4 set shiftwidth=4 set expandtab " The tab key will insert spaces instead of tab characters. set autoindent " Automatically indent lines set fileformat=unix set ruler " Show the cursor position all the time set mouse=a " Enable your mouse let mapleader = ' ' " Set leader key set number " Line numbers set clipboard=unnamedplus " Copy paste between vim and everything else set spelllang=en,es,cjk " Spell languages " Specify a directory for plugins call plug#begin('~/.vim/plugged') Plug 'morhetz/gruvbox' Plug 'jiangmiao/auto-pairs' Plug 'preservim/nerdtree' Plug 'preservim/nerdcommenter' Plug 'norcalli/nvim-colorizer.lua' Plug 'vim-airline/vim-airline' "Setting up a status bar Plug 'vim-airline/vim-airline-themes' Plug 'plasticboy/vim-markdown' " Initialize plugin system call plug#end() colorscheme gruvbox let g:airline\_theme='gruvbox' if (has("termguicolors")) set termguicolors endif lua require 'colorizer'.setup() " NERDCommenter Ctrl + '/' toggle comments nmap
vmap NERDCommenterToggle " NERDTree F2 open a file explorer let NERDTreeQuitOnOpen=1 nmap NERDCommenterToggle gv :NERDTreeToggle" F11 Toggle spell. To correct the error, you can press Ctrl, X, followed by s nnoremap inoremap :set spell! - Reload Nvim (so %) and install plugins (:PlugInstall). :set spell!