From 7bb9151d5070024c34e7a98cdece648e3ccd332a Mon Sep 17 00:00:00 2001 From: oreodave Date: Fri, 12 Jul 2019 23:06:51 +0100 Subject: Added dotfiles for spacemacs, tmux, vim and zsh --- vimrc | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100755 vimrc (limited to 'vimrc') diff --git a/vimrc b/vimrc new file mode 100755 index 0000000..2c8d885 --- /dev/null +++ b/vimrc @@ -0,0 +1,134 @@ +filetype off + +" Plugins +set rtp+=~/.vim/bundle/Vundle.vim +set rtp+=~/.fzf + +call vundle#begin() + " Core +Plugin 'gmarik/Vundle.vim' +Plugin 'wakatime/vim-wakatime' +Plugin 'junegunn/fzf.vim' +Plugin 'ctrlpvim/ctrlp.vim' +Plugin 'tpope/vim-dispatch' +Plugin 'Valloric/YouCompleteMe' +Plugin 'SirVer/ultisnips' +Plugin 'honza/vim-snippets' +Plugin 'w0rp/ale' + + " UI +Plugin 'scrooloose/nerdtree' +Plugin 'vim-airline/vim-airline' +Plugin 'powerline/powerline' +Plugin 'mhinz/vim-startify' +Plugin 'morhetz/gruvbox' + + " Languages +Plugin 'plasticboy/vim-markdown' +Plugin 'jceb/vim-orgmode' +Plugin 'OmniSharp/omnisharp-vim' + + " Plugins +Plugin 'godlygeek/tabular' +Plugin 'tpope/vim-commentary' +Plugin 'tpope/vim-fugitive' +Plugin 'tpope/vim-surround' +Plugin 'ervandew/supertab' +Plugin 'tpope/vim-speeddating' + + " Other +Plugin 'rhysd/vim-clang-format' +Plugin 'python-rope/ropevim' +call vundle#end() + + +" Standard variables +syntax enable +filetype plugin indent on +set nocompatible +set ignorecase +set smartcase +set clipboard=unnamed +set number +set nobackup +set noundofile +set nowritebackup +set nohlsearch +set tabstop=4 +set softtabstop=4 +set expandtab +set shiftwidth=4 +set foldmethod=syntax +set foldlevel=99 +let mapleader = ' ' + + +" Theming +let g:airline_theme = 'vorange' +colorscheme gruvbox + + +" Dir Config +let g:NERDTreeHijackNetrw = 1 + + +" Language Config +let g:OmniSharp_server_stdio = 1 +let g:OmniSharp_selector_ui = 'fzf' + + +" Tool Config +let g:ycm_key_list_select_completion = ['', ''] +let g:ycm_key_list_previous_completion = ['', ''] +let g:SuperTabDefaultCompletionType = '' + +let g:UltiSnipsExpandTrigger = '' +let g:UltiSnipsJumpForwardTrigger = '' +let g:UltiSnipsJumpBackwardTrigger = '' + + +" Keybinds + " General keybind +map fed :e ~/.vimrc +map fep :e ~/.vim/ftplugin +map fer :so ~/.vimrc:PluginInstall + + " File Management +map fr :e! +map fs :w +map fq :wq +map fn :enew +map :set hlsearch! hlsearch? + + " Buffer Management +map bb :Buffers +map bn :bn +map bp :bp +map bd :bd + + " Window Management +map ww :Windows + " Splits +map wv v +map wh s +map wd q + " Resizes +map w :resize -5 +map w :resize +5 +map w 5> +map w 5< + " Movement +map wj +map wk +map wl +map wh + + " Searches +map ss :BLines +map sf :Lines +map ff :Files + + " Nerd Tree Config +map tt :NERDTreeToggle +map tf :NERDTreeFocus + -- cgit v1.2.3-13-gbd6f