Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "if &term == "xterm-color"
- " set t_kb=^V<BS>
- " fixdel
- "endif
- "let asmsyntax="tasm"
- set guioptions=M
- " turn on filetype detection and syntax highlighting
- filetype plugin indent on
- syntax on
- " turn of this nasty backup-stuff ;)
- set nobackup
- set nowritebackup
- " search specific stuff
- set hlsearch
- set incsearch
- " tab/indenting specific stuff
- set tabstop=4
- set backspace=2
- set shiftwidth=4
- set autoindent
- set smarttab
- set expandtab
- " timeout specific stuff
- set notimeout
- set ttimeout
- set ttimeoutlen=100
- " fancy statusline
- set statusline=%<%1*%f\ %1*%y\ %7*[fo=%{&formatoptions}]\ %2*%m%3*%r%1*%=%-3(%1*%.3b%)\ 0x%-3.3B%1*%6.6l,%-4.4c%-6.12o%06(%6*%-p%%%)
- " misc stuff
- set showmode
- set laststatus=2
- set errorformat=%f:%l:%c:%t:%m
- set makeef=/tmp/vim.err
- set history=2500
- set tags=./tags,tags,~/.vim/systags
- set ttyfast
- set swapsync=fsync
- " set viminfo=""
- set undolevels=81920
- " disable bell/beep entirely
- set vb t_vb=
- " set so that p/y/etc defaults to the x-clipboard
- set clipboard=unnamed
- set textwidth=72
- set formatoptions=q
- set modeline
- set ignorecase
- " set nofoldenable
- set foldlevel=99
- set nrformats+=alpha
- " put all swap-files in one place
- set directory^=$HOME/.vim_swap//
- " vim-latex specific
- set grepprg=grep\ -nH\ $*
- let g:tex_flavor='latex'
- let g:Tex_Env_lstlisting = "\\myvspace\<CR>\\hypersetup{linkcolor=white}\<CR>\\lstset{\<CR>label=,\<CR>caption=<++>}\<CR>\\begin{lstlisting}\<CR><++>\<CR>\\end{lstlisting}\<CR>\\hypersetup{linkcolor=black}"
- let g:clang_complete_copen = 1
- " command-t: open in new tab by default
- let g:CommandTAcceptSelectionMap = '<C-t>'
- let g:CommandTAcceptSelectionTabMap = '<CR>'
- " spellfile
- set spellfile=~/.vim/spellfile.utf-8.add
- " statusline color scheme
- hi User1 ctermfg=black ctermbg=gray guifg=black guibg=gray
- hi User2 ctermfg=darkred ctermbg=gray guifg=darkred guibg=gray
- hi User3 ctermfg=darkred ctermbg=gray guifg=darkred guibg=gray
- hi User4 ctermfg=black ctermbg=gray guifg=black guibg=gray
- hi User5 ctermfg=black ctermbg=gray guifg=black guibg=gray
- hi User6 ctermfg=black ctermbg=gray guifg=black guibg=gray
- hi User7 ctermfg=darkgreen ctermbg=gray guifg=darkgreen guibg=gray
- hi User8 ctermfg=black ctermbg=gray guifg=black guibg=gray
- hi User9 ctermfg=black ctermbg=gray guifg=black guibg=gray
- " handy mappings
- map <F2> :nohlsearch<CR>
- imap <F2> <ESC>:nohlsearch<CR>a
- map <F3> :set fo-=a<CR>
- map <F4> :set fo+=a<CR>
- imap <F3> <ESC>:set fo-=a<CR>a
- imap <F4> <ESC>:set fo+=a<CR>a
- "map <F5> :%!xxd<CR>:set filetype=xxd<CR>:echo "Hexadezimal"<CR>
- " handy mappings for tab navigation
- map <A-1> 1gt
- map <A-2> 2gt
- map <A-3> 3gt
- map <A-4> 4gt
- map <A-5> 5gt
- map <A-6> 6gt
- map <A-7> 7gt
- map <A-8> 8gt
- map <A-9> 9gt
- map <A-0> 10gt
Add Comment
Please, Sign In to add comment