From 96b5dbe6e0053c122b5748bcc2c5ce54be519812 Mon Sep 17 00:00:00 2001 From: oreodave Date: Wed, 17 Jul 2019 01:23:28 +0100 Subject: Added a few keybinds, themes, and tag related plugins --- vimrc | 61 +++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 24 deletions(-) diff --git a/vimrc b/vimrc index f334519..ff109e5 100755 --- a/vimrc +++ b/vimrc @@ -1,34 +1,37 @@ filetype off -" Plugins +"" Plugins set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.fzf call vundle#begin() - " Core -Plugin 'gmarik/Vundle.vim' + "" Core +Plugin 'gmarik/Vundle.vim' Plugin 'wakatime/vim-wakatime' Plugin 'junegunn/fzf.vim' Plugin 'ctrlpvim/ctrlp.vim' Plugin 'tpope/vim-dispatch' +Plugin 'majutsushi/tagbar' Plugin 'Valloric/YouCompleteMe' Plugin 'SirVer/ultisnips' Plugin 'honza/vim-snippets' Plugin 'w0rp/ale' - " UI + "" UI Plugin 'scrooloose/nerdtree' Plugin 'vim-airline/vim-airline' Plugin 'powerline/powerline' Plugin 'mhinz/vim-startify' Plugin 'morhetz/gruvbox' +Plugin 'crusoexia/vim-monokai' - " Languages + "" Languages Plugin 'plasticboy/vim-markdown' Plugin 'jceb/vim-orgmode' Plugin 'OmniSharp/omnisharp-vim' +Plugin 'OrangeT/vim-csharp' - " Plugins + "" Plugins Plugin 'godlygeek/tabular' Plugin 'tpope/vim-commentary' Plugin 'tpope/vim-fugitive' @@ -36,13 +39,13 @@ Plugin 'tpope/vim-surround' Plugin 'ervandew/supertab' Plugin 'tpope/vim-speeddating' - " Other + "" Other Plugin 'rhysd/vim-clang-format' Plugin 'python-rope/ropevim' call vundle#end() -" Standard variables +"" Standard variables syntax enable filetype plugin indent on set nocompatible @@ -54,30 +57,32 @@ set nobackup set noundofile set nowritebackup set nohlsearch +set wildmenu set tabstop=4 set softtabstop=4 set expandtab set shiftwidth=4 +set previewheight=5 set foldmethod=syntax set foldlevel=99 let mapleader = ' ' -" Theming +"" Theming let g:airline_theme = 'vorange' -colorscheme gruvbox +colorscheme monokai -" Dir Config +"" Dir Config let g:NERDTreeHijackNetrw = 1 -" Language Config +"" Language Config let g:OmniSharp_server_stdio = 1 let g:OmniSharp_selector_ui = 'fzf' -" Tool Config +"" Tool Config let g:ycm_key_list_select_completion = ['', ''] let g:ycm_key_list_previous_completion = ['', ''] let g:SuperTabDefaultCompletionType = '' @@ -85,51 +90,59 @@ let g:SuperTabDefaultCompletionType = '' let g:UltiSnipsExpandTrigger = '' let g:UltiSnipsJumpForwardTrigger = '' let g:UltiSnipsJumpBackwardTrigger = '' +let g:ale_linters = { + \ 'cs': ['OmniSharp'] + \} -" Keybinds - " General keybind +"" Keybinds + "" General keybind nnoremap fed :e ~/.vimrc nnoremap fei :e ~/.vim/ftplugin nnoremap fer :so ~/.vimrc:PluginInstall +nnoremap qq :q! +nnoremap : - " File Management + "" File Management nnoremap fr :e! nnoremap fs :w nnoremap fq :wq nnoremap fn :enew nnoremap :set hlsearch! hlsearch? - " Buffer Management + "" Buffer Management nnoremap bb :Buffers nnoremap bn :bn nnoremap bp :bp nnoremap bd :bd - " Window Management + "" Window Management nnoremap ww :Windows - " Splits + "" Splits nnoremap w/ v nnoremap w- s nnoremap wd q - " Resizes + "" Resizes nnoremap w^ :resize -5 nnoremap w :resize +5 nnoremap w> 5> nnoremap w< 5< - " Movement + "" Movement nnoremap wj nnoremap wk nnoremap wl nnoremap wh - " Searches + "" Searches nnoremap ss :BLines nnoremap sf :Ag nnoremap st :BTags nnoremap ff :Files - " Projects + "" Projects nnoremap pf :Files nnoremap pt :NERDTreeToggle -nnoremap pg :Tags +nnoremap pg :!ctags-exuberant -R --exclude=Makefile . + + "" Tags +nnoremap tt :Tags -- cgit v1.2.3-13-gbd6f