Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filetype plugin indent on
- " show existing tab with 4 spaces width
- set tabstop=4
- " when indenting with '>', use 4 spaces width
- set shiftwidth=4
- " On pressing tab, insert 4 spaces
- set expandtab
- set smartindent
- set tabstop=4
- set shiftwidth=4
- set expandtab
- " Relative line numbering (lags tho...)
- set relativenumber
- " Point and click navigation
- set mouse=a
- " Remap to intuitive line moving
- map j gj
- map k gk
- " ||||||| LATEX SHORTCUTS ||||||||||||||||||||||||||||||||||||||||||||||||||||
- autocmd BufWritePost *.tex silent! execute "!/home/daniel/bin/compile.sh <afile>" | redraw!
- let @e = 'o\begin{equation*}
- kbkbkbkb\end{equation*}kzzi qkba'
- let @r = 'o\begin{align*}
- kbkbkbkb\end{align*}kzzi qkba'
- "let @f = 'o\begin{enumerate}[(a)]
- kbkbkbkb\end{enumerate}ki qkba\item'
- let @f = 'o\begin{enumerate}[(a)]okbkbkbkbkbkbkbkb\end{enumerate}kzzo
- kokbkbkbkb\item '
- let @d = 'o\clearpageo\begin{problem}{1}okbkbkbkb\end{problem}kzzo'
- " Remap leader key
- let mapleader = ","
- " Display line numbers
- set number
- " |||||||||| COLORSCHEME |||||||||||||||||||||||||||||||||||||||||||||||||||||
- let g:solarized_termcolors=256
- syntax enable
- set background=dark
- colorscheme harlequin
- " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- " |||||||| VUNDLE OPTIONS |||||||||||||||||||||||||||||||||||||||||||||||||||||
- " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- set nocompatible
- filetype off
- set rtp+=~/.vim/bundle/vundle/
- call vundle#rc()
- " This is the Vundle package, which can be found on GitHub.
- " " For GitHub repos, you specify plugins using the
- " " 'user/repository' format
- Plugin 'gmarik/vundle'
- Plugin 'valloric/youcompleteme'
- Plugin 'altercation/vim-colors-solarized'
- Plugin 'flazz/vim-colorschemes'
- Plugin 'rafi/awesome-vim-colorschemes'
- Plugin 'easymotion/vim-easymotion'
- " Plugin 'scrooloose/syntastic' <-- annoying errors
- " Plugin 'KeitaNakamura/tex-conceal.vim'
- " Plugin 'khzaw/vim-conceal'
- Plugin 'scrooloose/nerdcommenter'
- Plugin 'bling/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- " Now we can turn our filetype functionality back on
- filetype plugin indent on
- " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- " ||||| END VUNDLE OPTIONS ||||||||||||||||||||||||||||||||||||||||||||||||||||
- " |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- " Syntastic Options
- set statusline+=%#warningmsg#
- set statusline+=%{SyntasticStatuslineFlag()}
- set statusline+=%*
- let g:syntastic_always_populate_loc_list = 1
- let g:syntastic_auto_loc_list = 1
- let g:syntastic_check_on_open = 1
- let g:syntastic_check_on_wq = 0
- " ACTUALLY I DONT LIKE TEX CONCEAL
- " tex-conceal options
- " set conceallevel=2
- " let g:tex_conceal="abdgm"
- "
- " NerdCommenter
- "
- nnoremap <space>r :SyntasticReset<CR>
- " close syntastic error window
- :command K lclose
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement