runtime! debian.vim filetype plugin on set ai :set nocompatible :syn on :set title :set pastetoggle= :set listchars=tab:»·,trail:· :set list :nmap :set invlist :imap :set invlist :set clipboard^=autoselectml guioptions+=A let g:Imap_UsePlaceHolders = 1 let g:Imap_FreezeImap = 1 ":set fileencodings=ucs-bom,utf-8,default,latin1 :hi MatchParen ctermbg=black colorscheme peachpuff map :n map :N map :wn map :wN map fd ggV/^-- gq " nnoremap :make nnoremap :!make clean && make nnoremap :!make " nnoremap :!make " Set up the left-right actions just right: " ----------------------------------------- "nnoremap :tabprev "nnoremap :tabnext "inoremap :tabprev "inoremap :tabnext "" nnoremap :tabnew "nnoremap :tabprev "nnoremap :tabnext nnoremap :bprevious nnoremap :bnext inoremap :bprevious inoremap :bnext nnoremap :bprevious nnoremap :bnext inoremap :bprevious inoremap :bnext nnoremap [1;2D :bprevious nnoremap [1;2C :bnext inoremap [1;2D :bprevious inoremap [1;2C :bnext nnoremap [D :bprevious nnoremap [C :bnext inoremap [D :bprevious inoremap [C :bnext nnoremap [d :bprevious nnoremap [c :bnext inoremap [d :bprevious inoremap [c :bnext " nnoremap :bnew nnoremap :bprevious nnoremap :bnext if &term =~ '^screen' " tmux will send xterm-style keys when xterm-keys is on execute "set =\e[1;*A" execute "set =\e[1;*B" execute "set =\e[1;*C" execute "set =\e[1;*D" endif " wild/tab behavior " ================= set wildmode=longest,list:longest,list:full " Do not move cursor to the beginning of a line on buffer switch :se nostartofline " spelling stuff " ============== set spellfile=~/.vim.spell.en.add :nmap :set invspell :imap :set invspell " Detect indent stuff " =================== " wants the detectindent addon. function WeaselDoIdent() if exists(":DetectIndent") DetectIndent endif endfunction :autocmd BufReadPost * exec WeaselDoIdent() " Searching and highlighting " ========================== "hi Search cterm=NONE ctermfg=white ctermbg=darkgreen hi Search cterm=NONE ctermfg=yellow ctermbg=19 set hlsearch "This disabled search highlighting after a search nnoremap :noh " misc settings " ============= " Raise the number of maximum tabs set tabpagemax=50 " Do not close buffers we don't see set hidden " set grepprg=grep\ -nH\ $* " filetype indent on " let g:tex_flavor='latex' " "let g:Tex_PromptedEnvironments='eqnarray*,eqnarray,equation,equation*,\[,$$,align,align*' " let g:Tex_PromptedEnvironments='frame,itemize' " "call IMAP('FRAME', '\\begin{frame}{<++>}\ <++>\\\end{frame}', 'tex') " let g:Tex_Env_frame = "\\begin{frame}{<++>}\<++>\\\end{frame}"