Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "set guifont=PT\ Mono\ 11
- set guifont=DejaVu\ Sans\ Mono\ 10
- "set guifont=Ubuntu\ Mono\ 11
- set lsp=8
- " Remove menu bar
- set guioptions-=m
- " Remove toolbar
- set guioptions-=T
- com W :w
- map <C-m> :tabnext<CR>
- map <C-n> :tabnew<CR>
- map <C-b> :tabprevious<CR>
- map <F5> :execute RotateTabs()<CR>
- map <F4> :TlistToggle<CR>
- map <F3> :Explore<CR>
- map <M-m> :ShowMarksToggle<CR>
- map '; :ShowMarksClearMark<CR>
- map <A-q> {v}!par -jw80<CR>
- let b:tabset=0
- set tabstop=4
- set shiftwidth=4
- set expandtab
- set softtabstop=4
- set autoindent
- set updatecount=0
- set nofsync
- set autochdir
- let g:showmarks_enable=0
- colorscheme molokai
- function! RotateTabs()
- if b:tabset == 0
- set expandtab
- let b:tabset=1
- else
- set noexpandtab
- let b:tabset=0
- endif
- endfunction
- autocmd BufRead,BufNewFile *.zcml :set ft=xml
- function! GuiTabLabel()
- " add the tab number
- let label = '['.tabpagenr()
- " modified since the last save?
- let buflist = tabpagebuflist(v:lnum)
- for bufnr in buflist
- if getbufvar(bufnr, '&modified')
- let label .= '*'
- break
- endif
- endfor
- " count number of open windows in the tab
- let wincount = tabpagewinnr(v:lnum, '$')
- if wincount > 1
- let label .= ', '.wincount
- endif
- let label .= '] '
- " add the file name without path information
- let n = bufname(buflist[tabpagewinnr(v:lnum) - 1])
- let label .= fnamemodify(n, ':t')
- return label
- endfunction
- set guitablabel=%{GuiTabLabel()}
- set hlsearch
- set cursorline
- set autochdir
- " Commenting latex
- au BufRead,BufNewFile *.tex map ]% :s/^/%/<CR>
- au BufRead,BufNewFile *.tex map ]u :s/^%//<CR>
- au BufRead,BufNewFile *.tex set spell
- ":autocmd BufReadPost * :DetectIndent
- :set list listchars=tab:├─,trail:·
- set clipboard=unnamed,exclude:cons\\\|linux
- filetype plugin on
- filetype indent on
- let g:tex_flavor='latex'
Advertisement
Add Comment
Please, Sign In to add comment