" jump between splits map j_ map k_ set wmh=0 " swap single quote and backquote nnoremap ' ` nnoremap ` ' :map ,f [I:let nr = input("Which one: ")exe "normal " . nr ."[\t" set hidden "I don't remember what this was for but it seemed good. syntax on "syntax highlighting set autoread "auto read external changes to buffer set incsearch "incremental search like emacs "set hlsearch "highlight search results; sometimes annoying set ruler "show line and column number in status area set backspace=indent,eol,start "allow backspace over everything in insert mode set showmode "show mode in status line or something set showcmd "show commands as you type them, like commands starting with 'g' set lz "do not redraw while running macros (much faster) (LazyRedraw) "set mouse=a "use mouse everywhere set expandtab "set softtabstop=2 "set shortmess=atI " shortens messages to avoid 'press a key' prompt let perl_extended_vars=1 "highlight advanced perl vars inside strings filetype on "detect file types filetype plugin on "load plugins for different file types "filetype indent off "don't know what this is for "set viminfo+=! "make sure it can save viminfo "use tab instead of esc imap "make save the buffer "map :w "make comma save the buffer map , :w "Q normally enters ex mode which is some kind of relic from the 70s, literally. map Q :q "replace tags on this timepie line with those from the prev line. "(warning: must have timestamp in square brackets on both lines) map mzk0el"vy/\([\\|$\)jd/\([\\|$\)h"vp`zj "left/right arrows to switch buffers in normal mode map :bn map :bp "map :Sex " up arrow (normal mode) brings up a file list "map :Tlist " down arrow (normal mode) brings up the tag list "map i r " alt-i (normal mode) inserts a single char, and then switches back to normal "map ggVG:call SuperRetab() "map ggVGg? " encypt the file (toggle) if has("autocmd") autocmd BufRead *.txt set tw=78 noai "autocmd BufRead *.tex ai spell spelllang=en_us "autocmd FileType perl set autoindent|set smartindent autocmd FileType perl set showmatch autocmd FileType perl set makeprg=perl\ -c\ %\ $* autocmd FileType perl set errorformat=%f:%l:%m autocmd FileType perl set autowrite endif "put cursor where it was last time you edited the file set viminfo='10,\"100,:20,%,n~/.viminfo au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif "autocmd FileType perl set tabstop=4|set shiftwidth=4|set expandtab|set + softtabstop=4 " make tab in v mode ident code "vmap >gv "vmap I "nmap ^i " paste mode - this will avoid unexpected effects when you " cut or copy some text from one window and paste it in Vim. "set pastetoggle=