How do you replace a column of characters in visual block mode?
<C-v>jjr*
Enter visual block with , select a column with j, press r followed by the replacement character.
<C-v>jjr*
Enter visual block with , select a column with j, press r followed by the replacement character.
c in visual mode
Select text visually, then press c to delete the selection and enter insert mode.
d in visual mode
Select text visually and press d to delete the selection.
<C-v>jjA text <Esc>
Enter visual block with , select lines with j, press A to append after the block.
<C-v>jjI text <Esc>
Enter visual block with , select lines with j, press I to insert before the block.
<C-v>jjg<C-a>
Select a column of identical numbers with , then press g to create an incrementing sequence (1,2,3.
:source $MYVIMRC
Use :source $MYVIMRC or :so % if editing the vimrc to reload configuration.
set wildmenu wildmode=longest:full,full
Enable wildmenu for a visual menu above the command line.
set showmatch
Enable showmatch to briefly highlight the matching bracket when you type a closing bracket.
set relativenumber
Use set relativenumber (or set rnu) to show line numbers relative to the cursor position.
set list listchars=tab:>-,trail:~,extends:>,precedes:<
Enable list and configure listchars to show tabs as >-, trailing spaces as ~, and indicators for text extending beyond the screen.
set number
Use set number (or set nu) to display absolute line numbers in the left margin.
set undofile undodir=~/.vim/undo//
Enable undofile and set undodir to persist undo history to disk.
set wrap linebreak breakindent
Use wrap to wrap long lines, linebreak to break at word boundaries (not mid-word), and breakindent to preserve indentation on wrapped lines.
set directory=~/.vim/swap//
Set directory to control where swap files are stored.
set tabstop=4 shiftwidth=4
Set tabstop for display width of tabs and shiftwidth for indent operations.
set textwidth=80
Set textwidth (or tw) to automatically insert line breaks when typing past the specified column.
set scrolloff=8
Set scrolloff (or so) to keep at least 8 lines visible above and below the cursor when scrolling.
set sidescrolloff=5
Set sidescrolloff to keep at least 5 columns visible on each side of the cursor during horizontal scrolling.
set statusline=%f\ %m%r%h\ %=%l,%c\ %P
Configure statusline with format items: %f (filename), %m (modified flag), %= (right-align), %l,%c (line,column), %P (percentage).