Skip to content

Instantly share code, notes, and snippets.

@nickylimjj
Created March 1, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickylimjj/359b69ec4a9040f503a9b25d3ab921c3 to your computer and use it in GitHub Desktop.
Save nickylimjj/359b69ec4a9040f503a9b25d3ab921c3 to your computer and use it in GitHub Desktop.
" .vimrc
" vim configuration file
" Created by Nicky Lim
syntax enable
filetype plugin indent on
set number
set rnu
set colorcolumn=81
highlight CursorLine ctermbg=Black
highlight ColorColumn ctermbg=Black
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround
"set expandtab
set nowrap
set hlsearch
set incsearch
nnoremap <space> :noh<CR>
set ignorecase
set smartcase
set nobackup
set nowritebackup
set noswapfile
nnoremap <C-A> <Nop>
""""""""""""""""""""""""""""""""""""
" Better Copy and Paste
""""""""""""""""""""""""""""""""""""
set listchars=tab:▸\ ,trail:·
set list
""""""""""""""""""""""""""""""""""""
" Better Copy and Paste
""""""""""""""""""""""""""""""""""""
set clipboard=unnamed
""""""""""""""""""""""""""""""""""""
" Map leader key and ;-:
""""""""""""""""""""""""""""""""""""
let mapleader = ","
noremap : ;
noremap ; :
""""""""""""""""""""""""""""""""""""
" Code Indentation
""""""""""""""""""""""""""""""""""""
vnoremap < <gv
vnoremap > >gv
""""""""""""""""""""""""""""""""""""
" sort selected rows
""""""""""""""""""""""""""""""""""""
vnoremap <Leader>s :sort<CR>
""""""""""""""""""""""""""""""""""""
" HTML support
""""""""""""""""""""""""""""""""""""
nnoremap <Leader>f :set syntax=html<CR>:%!tidy -q -i --show-errors 0<CR>
nnoremap <Leader>he :call HtmlEscape()<CR>
nnoremap <Leader>hu :call HtmlUnescape()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment