Last active
August 29, 2015 13:56
-
-
Save shercoder/8910372 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
set wrapmargin=8 | |
set ruler | |
set number | |
" ts = tabstop, sw = shiftwidth, sts = softtabstop | |
set ts=4 sw=4 sts=2 | |
" expandtab: appropriate number of spaces in insert mode | |
set expandtab | |
" autocomplete parenthesis, brackets and braces | |
" inoremap ( ()<Left> | |
" inoremap [ []<Left> | |
" inoremap { {}<Left> | |
" Syntax highlighting on | |
syntax on | |
" Filetype plugins | |
filetype plugin indent on | |
" share windows clipboard | |
set clipboard+=unnamed | |
" Hightlight the curent column | |
" set cursorcolumn | |
" Hightlight the current line | |
set cursorline | |
" While typing a search command, show where the pattern, as it was typed | |
" so far, matches | |
set incsearch | |
set autoindent | |
set title " changte the terminal's title | |
set visualbell " don't beep | |
set noerrorbells " don't beep | |
set pastetoggle=<F2> | |
" disable arrow keys | |
map <up> <nop> | |
map <down> <nop> | |
map <left> <nop> | |
map <right> <nop> | |
" Easy window navigation | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
" sudo privilege after opening file without sudo | |
cmap w!! w !sudo tee % >/dev/null | |
set colorcolumn 81 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment