Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- .vimrc ---
- runtime! archlinux.vim
- source plugin.vim
- source vundle.vim
- source keybindings.vim
- source general.vim
- --- vundle.vim ---
- filetype off
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#rc()
- "Plugin 'VundleVim/Vundle.vim'
- Plugin 'Valloric/YouCompleteMe'
- Plugin 'scrooloose/nerdtree'
- Plugin 'rhysd/vim-clang-format'
- Plugin 'vim-scripts/DoxygenToolkit.vim'
- Plugin 'tpope/vim-fugitive'
- Plugin 'Chiel92/vim-autoformat'
- Plugin 'vim-syntastic/syntastic'
- "Plugin 'powerline/powerline'
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'lervag/vimtex'
- filetype plugin indent on
- syntax on
- --- keybindings.vim ---
- nore h h
- nore s l
- nore t k
- nore n j
- nore d d
- nore l n
- nore L N
- nore - $
- nore _ ^
- "Window movement keys
- nore H <C-W>h
- nore T <C-W>k
- nore N <C-W>j
- nore S <C-W>l
- nore Y <C-W>t
- "linecommand
- no gn gj
- no gt gk
- no C :ClangFormat<CR>
- "nnoremap j :Project<CR>
- "nnoremap <Tab> :e #<CR>
- nnoremap <Tab> :NERDTreeToggle<CR>
- "declaration
- nnoremap cd :YcmCompleter GoToDeclaration<CR>
- "implementation
- nnoremap ci :YcmCompleter GoToDefinition<CR>
- "header
- nnoremap ch :YcmCompleter GoToInclude<CR>
- "goto
- nnoremap cg :YcmCompleter GoTo<CR>
- "references
- nnoremap cr :YcmCompleter GoToReferences<CR>
- "type
- nnoremap ct :YcmCompleter GetType<CR>
- "fixit
- nnoremap cf :YcmCompleter FixIt<CR>
- "explanation
- nnoremap ce :YcmCompleter GetDoc<CR>
- nore cj :Dox<CR>
- nore cc :Autoformat<CR>
- nore cl :SyntasticCheck<CR>
- command Sudow w !sudo tee % >/dev/null
- command WritingPrompt vsplit <bar> vsplit <bar> vertical resize 120 <bar> enew <bar> wincmd w <bar> wincmd w <bar> enew <bar> vertical resize 120 <bar> wincmd h <bar> set spell <bar> set wrap linebreak
- "command SetupVimProject vsplit <bar> split <bar> wincmd l <bar> split <bar> NERDTreeToggle
- command SetupVimProject vsplit <bar> NERDTreeToggle
- --- plugin.vim ---
- let g:airline_theme='durant'
- let g:ycm_confirm_extra_conf = 0
- let g:ycm_always_populate_location_list = 1
- let NERDTreeMapOpenInTab = 'y'
- let NERDTreeMapOpenInTabSilent = 'Y'
- let g:vimtex_compiler_enabled = 1
- let g:vimtex_complete_enabled = 0
- let g:vimtex_fold_enabled = 0
- let g:vimtex_format_enabled = 0
- let g:vimtex_imaps_enabled = 0
- let g:vimtex_indent_bib_enabled = 0
- let g:vimtex_indent_enabled = 0
- let g:vimtex_labels_enabled = 0
- let g:vimtex_mappings_enabled = 0
- let g:vimtex_matchparen_enabled = 0
- let g:vimtex_motion_enabled = 0
- let g:vimtex_text_obj_enabled = 0
- let g:vimtex_toc_enabled = 0
- let g:vimtex_view_enabled = 1
- let g:DoxygenToolkit_commentType = 'C++'
- "let g:syntastic_check_on_wq = 0
- "let g:syntastic_check_on_open = 0
- let g:syntastic_auto_loc_list = 1
- let g:syntastic_mode_map = { 'mode': 'passive', 'active_filetypes': ['javascript'],'passive_filetypes': [] }
- let g:syntastic_javascript_checkers = ['eslint']
- --- general.vim ---
- set incsearch
- set hlsearch
- set ignorecase
- set smartcase
- set foldmethod=syntax
- set relativenumber
- set dictionary=/usr/share/dict/usa
- " set dictionary+=/usr/share/dict/german
- set complete+=k
- set t_Co=256
- set smartindent
- set tabstop=2
- set softtabstop=2
- set expandtab
- set shiftwidth=2
- set nocompatible
- set laststatus=2
- colorscheme basic-dark
- autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
- "Alert when hitting the end of the line
- "au BufWinEnter *.cpp,*.hpp let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
- "au BufWinEnter *.cpp,*.hpp set foldmethod=syntax
- syntax enable
- filetype plugin on
- set path+=**
- set wildmenu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement