Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " MUST
- syntax enable " Use on/off on case by case basis
- set encoding=utf-8
- filetype plugin indent on " required!
- " set backspace=indent,eol,start " Might take a bit of getting used to
- " Tabbing
- set tabstop=2 shiftwidth=2 " tab is two spaces
- set expandtab " spaces for tabs
- set smarttab
- set smartindent " Indent based on syntax
- set autoindent " Indent based on prev line
- set showmatch " matching parens brackets shown
- " Searching
- set incsearch " incremental searching
- set hlsearch " highlight searches
- set ignorecase " case insensitive searches
- set smartcase " except for one capital letter
- " Decoration
- set showcmd " Show last command at bottom
- set showmode " Show... mode... INSERT REPLACE VISUAL
- set ruler " Char location info
- " set listchars=tab:>-,trail:ยท,eol:$ " Not working?
- set shortmess=atI " last line info abbr, truncate message, no intro
- set scrolloff=999 " set cursor at middle of screen always
- " Command-line tab completion
- set wildmenu
- " Terminal Stuff
- set title " to set terminal window name to file name
- set visualbell
- set number
- """"""""""""""""""""""""""""""""""""""""""""""""""""""
- " From Vimbits
- " Reselect visual block after indent/outdent
- vnoremap < <gv
- vnoremap > >gv
- " Make Y behave like other capitals
- map Y y$
- " Up/Down movement on wrapped lines
- nnoremap j gj
- nnoremap k gk
- " Sudo write
- cmap w!! %!sudo tee > /dev/null %
- " automatically reload vimrc when it's saved
- au BufWritePost .vimrc so ~/.vimrc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement