Last active
January 29, 2016 01:02
-
-
Save yupyupp/b099b7f51ac41bcb2a10 to your computer and use it in GitHub Desktop.
Basic Vimrc without extra plugins
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 | |
" Stephen Haffner | |
" Updated: 2016.01.29 | |
"General vim | |
set loadplugins | |
syntax on | |
filetype plugin indent on | |
set ai si | |
set number | |
set cursorline | |
set colorcolumn=100 | |
set ruler | |
set spelllang=en | |
set expandtab tabstop=4 shiftwidth=4 softtabstop=4 | |
set smarttab | |
"Searching | |
set incsearch | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set smartcase | |
set lazyredraw | |
set showmatch | |
"Press <esc> to clear highlight | |
noremap <silent><esc> <esc>:noh<CR><esc> | |
"Theme/Color | |
set t_Co=256 | |
colorscheme evening | |
"set guifont=Anonymous_Pro:h10:cANSI | |
" Map 0 to first non-blank char | |
map 0 ^ | |
"latex | |
let g:tex_flavor = "latex" | |
"Make backspace key preform like most applications | |
set backspace=2 | |
"Text wrapping | |
nmap `w :setlocal wrap!<CR>:setlocal wrap?<CR> | |
"Movement | |
"nmap j gj | |
"nmap k gk | |
"Fold/Unfold with space | |
nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR> | |
vnoremap <Space> zf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this vim config, save it as .vimrc in your home folder. For a more complete vimrc with syntax checking and auto-completion plug-ins take a look at https://github.com/kd8zev/dotfiles