Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
- " /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
- " you can find below. If you wish to change any of those settings, you should
- " do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
- " everytime an upgrade of the vim packages is performed. It is recommended to
- " make changes after sourcing archlinux.vim since it alters the value of the
- " 'compatible' option.
- " This line should not be removed as it ensures that various options are
- " properly set to work with the Vim-related packages.
- runtime! archlinux.vim
- " If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
- " Or better yet, read /usr/share/vim/vim72/vimrc_example.vim or the vim manual
- " and configure vim to your own liking!
- syntax on
- "colorscheme zellner
- colorscheme molokai
- " Vertical mark at columns 80 an 81
- set colorcolumn=80,81
- hi ColorColumn ctermbg=234 guibg=1C1C1C
- " Four spaces instead of tabs
- set expandtab
- set smarttab
- set tabstop=4
- set shiftwidth=4
- " Indentation
- set autoindent
- set smartindent
- " Allow first line of paragraph to have its own indentation
- set fo+=2
- " Indent based upon file type
- if has("autocmd")
- filetype plugin indent on
- endif
- " Line Numbers
- set number
- " Smart Search ( case sensitive when upper-case letters are in search )
- set ignorecase
- set smartcase
- " auto-complete paths ( Control + N )
- set path+=/usr/include/**
- " Remember last lines
- if has("autocmd")
- au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
- \| exe "normal g'\"" | endif
- endif
- " Bind space in command mode to insert one character
- " I.E. press 'space' + [key] to insert [key] before cursor w/o exiting command mode
- "nmap <Space> i_<Esc>r
- " Treat broken-lines as separate lines while moving around
- map j gj
- map k gk
- " Always show status line
- "set laststatus=2
- " Don't preview one line of minimized windows
- set wmh=0
- set wmw=0
- " Move between windows with Ctrl+[hjkl]
- nmap <C-j> <C-w>j<Enter>
- nmap <C-k> <C-w>k<Enter>
- nmap <C-h> <C-w>h<Enter>
- nmap <C-l> <C-w>l<Enter>
- " Bind Ctrl C to compile tex source named 'lab.tex' using pdflatex
- "map <C-c> :!pdflatex %<Enter>
- " Bind Ctrl P to interperete current source file using python
- "map <C-p> :!python %<Enter>
- "map <C-i> :!python -i %<Enter>
- " Authorinfo plugin config
- let g:vimrc_author='snip'
- let g:vimrc_email='snip'
- let g:vimrc_homepage='snip'
- nmap <F4> :AuthorInfoDetect<CR>
- " Taglist Options
- " Open on keybind
- nmap <C-t> :TlistToggle<CR>
- " Close the list when something is selected
- let Tlist_Close_On_Select = 1
- let Tlist_GainFocus_On_ToggleOpen = 1
- " NERDTree
- nmap <C-n> :NERDTreeToggle<CR>
- let NERDTreeQuitOnOpen = 1
- " Latex-Suite
- set grepprg=grep\ -nH\ $*
- let g:tex_flavor = "latex"
- let g:tex_comment_nospell = 1
- let g:Tex_Folding = 0
- let g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode $*'
- let g:Tex_FormatDependancy_pdf = 'pdf'
- let g:Tex_DefaultTargetFormat = 'pdf'
- let g:Tex_MultipleCompileFormats = 'pdf'
- let g:Tex_ViewRule_pdf = 'evince'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement