Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set ffs=unix,dos
- let g:clang_library_path='/usr/lib/llvm-6.0/lib'
- set nocompatible " be iMproved, required
- filetype off " required
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- Plugin 'VundleVim/Vundle.vim'
- call vundle#end() " required
- filetype plugin indent on " required
- " :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
- syntax on
- "wildmenu lazyredraw visualbell number ruler expandtab tabstop shiftwidth autoindent smarttab smartindent
- set wmnu lz vb nu ru et ts=4 sw=4 ai sta si
- set gfn=consolas "guifont
- set spr sb "splitright splitbelow
- set hls is ar "hlsearch incsearch autoread
- set guioptions-=T
- set guioptions-=m
- set mouse=a
- set showcmd
- set whichwrap+=<,>,[,]
- set backspace=indent,eol,start
- "========================================
- function! Setup()
- vs $HOME/vim_gcc/source.cpp
- silent only!
- silent tabonly!
- vs $HOME/vim_gcc/input.txt
- sp $HOME/vim_gcc/output.txt
- tabnew $HOME/vim_gcc/CompileMessage.txt
- tabp
- silent execute "normal \<C-w>h\<C-w>k"
- endfunction
- nnoremap <silent> <F6> :wa<CR><C-w>h<C-w>k :!g++ -D_MY -Wall -Wno-unused-result -std=c++17 -g % -o %:r <CR>
- nnoremap <silent> <F5> :wa<CR><C-w>h<C-w>k :!g++ -D_MY -Wall -Wno-unused-result -std=c++17 -g % -o %:r && ./%:r <CR>
- vmap <C-c> "+y
- nmap <C-a> ggVG
- nmap <C-v> "+gp
- vmap <C-v> "+gp
- imap <C-v> <esc><C-v>a
- nnoremap <C-b> <C-v>
- inoremap ( ()<Left>
- inoremap [ []<Left>
- inoremap { {}<Left>
- inoremap <expr> ) strpart(getline('.'), col('.')-1, 1) == ")" ? "\<Right>" : ")"
- inoremap <expr> ] strpart(getline('.'), col('.')-1, 1) == "]" ? "\<Right>" : "]"
- inoremap <expr> } strpart(getline('.'), col('.')-1, 1) == "}" ? "\<Right>" : "}"
- inoremap <expr> <Enter> strpart(getline('.'), col('.')-2, 2) != "{}" ? "\<Enter>" : "\<CR>\<Tab>\<CR>\<Up>\<Esc>$a"
- "-----ONLY--LOCAL------
- let teach = 0
- if teach == 1
- syntax off
- colorscheme shine
- endif
Advertisement
Add Comment
Please, Sign In to add comment