" general vim stuff " remove trailing blanks, if any, at the ends of all line " :%s/\s\+$//e source ~/.exrc set tw=72 " if split screen, go from top to bottom or vice versa map ,  map F {gq} " collapse all lines in paragraph to one line, for non_Unix readers of " mail map FF :set tw=10000 F :set tw=72 map pst :set paste map nopst :set nopaste set autowrite set expandtab set nohlsearch set nocindent map B :bnext set shiftwidth=3 set backup syntax off " do NON-case sensitive search: /\csearch_string instead of " /search_string " for plugins, e.g. for .R, .tex files: set nocompatible syntax enable filetype plugin on " in ~/.vim/ftplugin, place files r.vim, tex.vim etc. containing your " desired macros etc., e.g. " source ~/.virrc " for Python, there is a built-in, no need to put in ftplugin/ files: [[ " and ]] to move to next/previous class, ]m, [m to move to next/previous " method; do set ft=python or...; R too " turn off autoindent when cut-and-paste from another app " set paste " turn back on, to bet macros back! " set nopaste