Created
March 1, 2020 15:07
-
-
Save nickylimjj/359b69ec4a9040f503a9b25d3ab921c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" .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