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: " ----------------------------------------- " Map Shift-{Left,Right} to the previous/next buffer " both in normal mode and in insert mode. " This is for urxvt on buster (rxvt-unicode-256color) " and a screen launched in that (screen-bce) nnoremap [d :bprevious nnoremap [c :bnext inoremap [d :bprevious inoremap [c :bnext " This makes it work in a tmux on urxvt, " in xterm, and in tmux/screen in xterm. nnoremap [1;2D :bprevious nnoremap [1;2C :bnext inoremap [1;2D :bprevious inoremap [1;2C :bnext " Navigate in (split) windows " up/down/left/right " in xterm: nnoremap [1;3A :wincmd k nnoremap [1;3B :wincmd j nnoremap [1;3D :wincmd h nnoremap [1;3C :wincmd l inoremap [1;3A :wincmd k inoremap [1;3B :wincmd j inoremap [1;3D :wincmd h inoremap [1;3C :wincmd l " in urxvt I can't get Alt- to work, so use ;/,. " the up/down clash with to exit insert mode, followed by / to search :/ "nnoremap ; :wincmd k "nnoremap / :wincmd j nnoremap , :wincmd h nnoremap . :wincmd l "inoremap ; :wincmd k "inoremap / :wincmd j inoremap , :wincmd h inoremap . :wincmd l " nnoremap :bprevious " nnoremap :bnext " nnoremap :bprevious " nnoremap :bnext " inoremap :bprevious " inoremap :bnext " " nnoremap :bprevious " nnoremap :bnext " inoremap :bprevious " inoremap :bnext " " " nnoremap [D :bprevious " nnoremap [C :bnext " inoremap [D :bprevious " inoremap [C :bnext " " " nnoremap :bprevious " nnoremap :bnext " " 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}"