Guest User

Untitled

a guest
Jan 9th, 2013
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.91 KB | None | 0 0
  1. "set guifont=PT\ Mono\ 11
  2. set guifont=DejaVu\ Sans\ Mono\ 10
  3. "set guifont=Ubuntu\ Mono\ 11
  4. set lsp=8
  5. " Remove menu bar
  6. set guioptions-=m
  7.  
  8. " Remove toolbar
  9. set guioptions-=T
  10.  
  11. com W :w
  12. map <C-m> :tabnext<CR>
  13. map <C-n> :tabnew<CR>
  14. map <C-b> :tabprevious<CR>
  15. map <F5> :execute RotateTabs()<CR>
  16. map <F4> :TlistToggle<CR>
  17. map <F3> :Explore<CR>
  18. map <M-m> :ShowMarksToggle<CR>
  19. map '; :ShowMarksClearMark<CR>
  20. map <A-q> {v}!par -jw80<CR>
  21.  
  22. let b:tabset=0
  23. set tabstop=4
  24. set shiftwidth=4
  25. set expandtab
  26. set softtabstop=4
  27. set autoindent
  28. set updatecount=0
  29. set nofsync
  30. set autochdir
  31. let g:showmarks_enable=0
  32.  
  33. colorscheme molokai
  34.  
  35. function! RotateTabs()
  36.     if b:tabset == 0
  37.         set expandtab
  38.         let b:tabset=1
  39.     else
  40.         set noexpandtab
  41.         let b:tabset=0
  42.     endif
  43. endfunction
  44.  
  45. autocmd BufRead,BufNewFile *.zcml :set ft=xml
  46.  
  47. function! GuiTabLabel()
  48.    " add the tab number
  49.    let label = '['.tabpagenr()
  50.  
  51.    " modified since the last save?
  52.    let buflist = tabpagebuflist(v:lnum)
  53.    for bufnr in buflist
  54.        if getbufvar(bufnr, '&modified')
  55.            let label .= '*'
  56.            break
  57.        endif
  58.    endfor
  59.  
  60.    " count number of open windows in the tab
  61.    let wincount = tabpagewinnr(v:lnum, '$')
  62.    if wincount > 1
  63.        let label .= ', '.wincount
  64.    endif
  65.    let label .= '] '
  66.  
  67.    " add the file name without path information
  68.    let n = bufname(buflist[tabpagewinnr(v:lnum) - 1])
  69.    let label .= fnamemodify(n, ':t')
  70.  
  71.    return label
  72. endfunction
  73.  
  74. set guitablabel=%{GuiTabLabel()}
  75. set hlsearch
  76. set cursorline
  77. set autochdir
  78.  
  79. " Commenting latex
  80. au BufRead,BufNewFile *.tex map ]% :s/^/%/<CR>
  81. au BufRead,BufNewFile *.tex map ]u :s/^%//<CR>
  82. au BufRead,BufNewFile *.tex set spell
  83.  
  84. ":autocmd BufReadPost * :DetectIndent
  85.  
  86. :set list listchars=tab:├─,trail:·
  87. set clipboard=unnamed,exclude:cons\\\|linux
  88.  
  89. filetype plugin on
  90. filetype indent on
  91. let g:tex_flavor='latex'
Advertisement
Add Comment
Please, Sign In to add comment