From 094087893a66b250da1c97608c31c6b521c90153 Mon Sep 17 00:00:00 2001 From: dx Date: Fri, 24 Apr 2020 02:35:01 +0100 Subject: ~Moved all files to respective folders for gnu stow --- vim/.vimrc | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 vim/.vimrc (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..27b35f4 --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,105 @@ +filetype off + +"" Plugins +set rtp+=~/.vim/bundle/Vundle.vim + +call vundle#begin() + "" Core +Plugin 'gmarik/Vundle.vim' +Plugin 'tpope/vim-dispatch' +Plugin 'SirVer/ultisnips' +Plugin 'honza/vim-snippets' +Plugin 'christoomey/vim-tmux-navigator' + + "" UI +Plugin 'scrooloose/nerdtree' + + "" Plugins +Plugin 'godlygeek/tabular' +Plugin 'tpope/vim-commentary' +Plugin 'tpope/vim-fugitive' +Plugin 'tpope/vim-surround' +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 wildmenu +set tabstop=4 +set softtabstop=4 +set expandtab +set shiftwidth=4 +set previewheight=5 +set foldmethod=syntax +set foldlevel=99 +set path+=** +let mapleader = ' ' + + +"" Theming +colorscheme elflord + + +"" Dir Config +let g:NERDTreeHijackNetrw = 1 + + +"" Keybinds +imap jk + "" General keybind +nnoremap fp :e ~/.vimrc +nnoremap fei :e ~/.vim/ftplugin +nnoremap fr :so ~/.vimrc:PluginInstall:PluginClean +nnoremap qq :q! +nnoremap gs :G +nnoremap : + + "" File Management +nnoremap ff :e +nnoremap fs :w +nnoremap fq :wq +nnoremap fn :enew +nnoremap :set hlsearch! hlsearch? + + "" Buffer Management +nnoremap bb :b +nnoremap bn :bn +nnoremap bp :bp +nnoremap bd :bd + + "" Search +nnoremap ss / + + "" Window Splits +nnoremap wv v +nnoremap ws s +nnoremap wd q + + "" Window Resizes +nnoremap wj :resize -5 +nnoremap wk :resize +5 +nnoremap wl 5> +nnoremap wh 5< + + "" Window Movement +nnoremap j +nnoremap k +nnoremap l +nnoremap h + + "" Projects +nnoremap ot :NERDTreeToggle +nnoremap pg :!ctags-exuberant -R --exclude=Makefile . + + "" Tags +nnoremap tt :Tags -- cgit v1.2.3-13-gbd6f