Created
April 2, 2018 13:30
-
-
Save nro-bot/1c00c385af1d0cb3fefa7d24b99815ca to your computer and use it in GitHub Desktop.
config files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required | |
| Plugin 'VundleVim/Vundle.vim' | |
| Plugin 'sentientmachine/Pretty-Vim-Python' | |
| Plugin 'scrooloose/nerdcommenter' | |
| Plugin 'maralla/completor.vim' | |
| Plugin 'lervag/vimtex' | |
| Plugin 'Vimjas/vim-python-pep8-indent' | |
| Plugin '907th/vim-auto-save' | |
| " The following are examples of different formats supported. | |
| " Keep Plugin commands between vundle#begin/end. | |
| " plugin on GitHub repo | |
| " Plugin 'lervag/vimtex' | |
| " All of your Plugins must be added before the following line | |
| call vundle#end() " required | |
| filetype plugin indent on " required | |
| " To ignore plugin indent changes, instead use: | |
| "filetype plugin on | |
| " | |
| " Brief help | |
| " :PluginList - lists configured plugins | |
| " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
| " :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
| " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
| " | |
| " see :h vundle for more details or wiki for FAQ | |
| " Put your non-Plugin stuff after this line | |
| nmap , : | |
| command WQ wq | |
| command Wq wq | |
| command W w | |
| command Q q | |
| syntax on | |
| filetype indent plugin on | |
| set tabstop=4 | |
| set expandtab | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set autoindent | |
| "colorscheme desert | |
| colorscheme molokai | |
| highlight Comment cterm=bold | |
| "highlight Comment cterm=bold | |
| let mapleader="," | |
| set nu | |
| set mouse=a | |
| nnoremap ,p :!pdflatex % > \dev\null <CR> | |
| nnoremap ,o :!pdflatex %<CR> | |
| nnoremap ,e :!python ./problem3.py > \dev\null <CR> | |
| set wrap | |
| set textwidth=100 | |
| inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | |
| inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | |
| inoremap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "\<cr>" | |
| " make a statusline | |
| hi StatusLine ctermbg=red ctermfg=black | |
| set statusline=%t[%{strlen(&fenc)?&fenc:'none'},%{&ff}]%h%m%r%y%=%c,%l/%L\ %P | |
| set laststatus=2 "put statusline two lines up | |
| " let the tab at the top reflect the current file being edited | |
| let &titlestring = @% | |
| set title | |
| imap jk <Esc> | |
| "set list | |
| " making it possible to see cursor when highlighting matching | |
| hi MatchParen cterm=bold ctermbg=none ctermfg=magenta | |
| " NOTE show whitespace with :set list | |
| " create abbreviations for math. when you type the space, vim will expand | |
| " automatically create equation environment. Used in inesrt mode | |
| autocmd FileType tex map!;b <ESC>bywi\begin{<ESC>ea}<CR>\end{}<ESC>PO | |
| autocmd FileType tex map!;m \begin{align}<Return>\end{align}<ESC>O | |
| let g:auto_save_events = ["InsertLeave", "TextChanged", "TextChangedI", "CursorHold"] | |
| " AutoSave is disabled by default, run :AutoSaveToggle to enable/disable it. | |
| set updatetime=750 | |
| " \ll in normal mode to get | |
| " \lv | |
| " vim --servername vim test.tex | |
| " ci} {asdf} | |
| " cit <h2></h2> | |
| " dac \boldface\mu -> \mu (command) | |
| " cse change surrounding environment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment