daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Dec 11th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "if &term == "xterm-color"
  2. "  set t_kb=^V<BS>
  3. "  fixdel
  4. "endif
  5.  
  6. "let asmsyntax="tasm"
  7.  
  8. set guioptions=M
  9.  
  10. " turn on filetype detection and syntax highlighting
  11. filetype plugin indent on
  12. syntax on  
  13.  
  14. " turn of this nasty backup-stuff ;)
  15. set nobackup
  16. set nowritebackup
  17.  
  18. " search specific stuff
  19. set hlsearch
  20. set incsearch
  21.  
  22. " tab/indenting specific stuff
  23. set tabstop=4
  24. set backspace=2
  25. set shiftwidth=4
  26. set autoindent
  27. set smarttab
  28. set expandtab
  29.  
  30. " timeout specific stuff
  31. set notimeout
  32. set ttimeout
  33. set ttimeoutlen=100
  34.  
  35. " fancy statusline
  36. 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%%%)
  37.  
  38. " misc stuff
  39. set showmode
  40. set laststatus=2
  41. set errorformat=%f:%l:%c:%t:%m
  42. set makeef=/tmp/vim.err
  43. set history=2500
  44. set tags=./tags,tags,~/.vim/systags
  45. set ttyfast
  46. set swapsync=fsync
  47. " set viminfo=""
  48. set undolevels=81920
  49.  
  50. " disable bell/beep entirely
  51. set vb t_vb=
  52.  
  53. " set so that p/y/etc defaults to the x-clipboard
  54. set clipboard=unnamed
  55.  
  56. set textwidth=72
  57. set formatoptions=q
  58.  
  59. set modeline
  60. set ignorecase
  61. " set nofoldenable
  62. set foldlevel=99
  63. set nrformats+=alpha
  64.  
  65. " put all swap-files in one place
  66. set directory^=$HOME/.vim_swap//
  67.  
  68. " vim-latex specific
  69. set grepprg=grep\ -nH\ $*
  70. let g:tex_flavor='latex'
  71. 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}"
  72.  
  73. let g:clang_complete_copen = 1  
  74.  
  75. " command-t: open in new tab by default
  76. let g:CommandTAcceptSelectionMap = '<C-t>'
  77. let g:CommandTAcceptSelectionTabMap = '<CR>'
  78.  
  79. " spellfile
  80. set spellfile=~/.vim/spellfile.utf-8.add
  81.  
  82. " statusline color scheme
  83. hi User1 ctermfg=black       ctermbg=gray     guifg=black     guibg=gray
  84. hi User2 ctermfg=darkred     ctermbg=gray     guifg=darkred   guibg=gray
  85. hi User3 ctermfg=darkred     ctermbg=gray     guifg=darkred   guibg=gray
  86. hi User4 ctermfg=black       ctermbg=gray     guifg=black     guibg=gray
  87. hi User5 ctermfg=black       ctermbg=gray     guifg=black     guibg=gray
  88. hi User6 ctermfg=black       ctermbg=gray     guifg=black     guibg=gray
  89. hi User7 ctermfg=darkgreen   ctermbg=gray     guifg=darkgreen guibg=gray
  90. hi User8 ctermfg=black       ctermbg=gray     guifg=black     guibg=gray
  91. hi User9 ctermfg=black       ctermbg=gray     guifg=black     guibg=gray
  92.  
  93. " handy mappings
  94.  
  95. map <F2> :nohlsearch<CR>
  96. imap <F2> <ESC>:nohlsearch<CR>a
  97.  
  98. map <F3> :set fo-=a<CR>
  99. map <F4> :set fo+=a<CR>
  100. imap <F3> <ESC>:set fo-=a<CR>a
  101. imap <F4> <ESC>:set fo+=a<CR>a
  102. "map <F5> :%!xxd<CR>:set filetype=xxd<CR>:echo "Hexadezimal"<CR>
  103.  
  104. " handy mappings for tab navigation
  105.  
  106. map <A-1> 1gt
  107. map <A-2> 2gt
  108. map <A-3> 3gt
  109. map <A-4> 4gt
  110. map <A-5> 5gt
  111. map <A-6> 6gt
  112. map <A-7> 7gt
  113. map <A-8> 8gt
  114. map <A-9> 9gt
  115. map <A-0> 10gt
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top