Terminal colour codes#
link to wiki page of colours
.bashrc#
# set case insensitivity for the terminal
bind "set completion-ignore-case on"
# set vim motions on
set -o vi
.vimrc#
" set numbering of lines to relative
set relativenumber
" set formatoptions-=r
" set textwidth=80
" if you want to reformat the document, go to start of document and type gqG
" set moving up and down centered on the screen
nnoremap <C-d> <C-d>zz
nnoremap <C-u> <C-u>zz
" set the cursor in different modes to be different
let &t_EI ="\e[2 q" " block in edit mode
let &t_SI ="\e[1 q" " blinking block in insert mode
let &t_SR ="\e[3 q" " block in replace mode
" set leader to space
let mapleader = " "
" clear all registers
command! ClearRegisters call ClearAllRegisters()
function! ClearAllRegisters()
for r in split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-"', '\zs')
execute 'let @'.r.'=""'
endfor
endfunction
" map the command
nnoremap <leader>cr :call ClearAllRegisters()<CR>
" Set the markdown folding
let g:markdown_folding=3
autocmd BufRead,BufNewFile *.md set filetype=markdown
set foldmethod=syntax
set foldlevel=3
set foldmethod=manual