From 57c11fcf8cd844c0af74ed50e83b8982b2ebb83e Mon Sep 17 00:00:00 2001 From: Chrisatmachine Date: Fri, 17 Aug 2018 15:27:02 -0400 Subject: added more --- init.vim | 49 +++++++++++++++++++++++++++++++++++++++++-------- tags | 11 ++++++++++- 2 files changed, 51 insertions(+), 9 deletions(-) diff --git a/init.vim b/init.vim index 45cb1183..ddd1c963 100644 --- a/init.vim +++ b/init.vim @@ -1,24 +1,53 @@ + + """""""""" HOUSEKEEPING """""""""" syntax on set nowrap set encoding=utf8 +set mouse=a " escape can blow me nnoremap " Gets rid of highlights after search -nnoremap :nohlsearch +nnoremap :nohlsearch " Line numbers set number " Toggle line numbers nnoremap :set nonumber! +nnoremap :vsplit +nnoremap :split +nnoremap :only +"if (has("termguicolors")) +" set termguicolors +"endif if &compatible set nocompatible " Be iMproved endif + " Remap window switch nnoremap h nnoremap j nnoremap k nnoremap l +" Remap terminal switch +tnoremap +tnoremap +tnoremap h +tnoremap j +tnoremap k +tnoremap l +" : completion. +inoremap pumvisible() ? "\" : "\" +" Enable Elite mode, No ARRRROWWS!!!! +let g:elite_mode=1 +" Disable arrow movement, resize splits instead. +if get(g:, 'elite_mode') + nnoremap :resize -2 + nnoremap :resize +2 + nnoremap :vertical resize -2 + nnoremap :vertical resize +2 +endif + """""""""" END HOUSEKEEPING """""""""" @@ -44,7 +73,7 @@ if dein#load_state('~/chris/.cache/dein') call dein#add('ludovicchabant/vim-gutentags') " Tagbar call dein#add('majutsushi/tagbar') - " Add or remove your plugins here: + " Add or remove your plugins here: TODO call dein#add('Shougo/neosnippet.vim') call dein#add('Shougo/neosnippet-snippets') " Themes @@ -53,6 +82,8 @@ if dein#load_state('~/chris/.cache/dein') call dein#add('jiangmiao/auto-pairs') " NERDTree call dein#add('scrooloose/nerdtree') + " BufOnly use :BufOnly to unload all or pass it a single buffer + call dein#add('vim-scripts/BufOnly.vim') " For autocomplete call dein#add('Shougo/deoplete.nvim') " For vim 8+ @@ -92,20 +123,23 @@ colorscheme space-vim-dark " hi SignColumn ctermbg=NONE guibg=NONE "endif -" Range: 233 (darkest) ~ 238 (lightest) -" Default: 235 +" Range: 233 (darkest) ~ 238 (lightest) +" Default: 235 let g:space_vim_dark_background = 233 color space-vim-dark hi Comment guifg=#5C6370 ctermfg=59 "hi Comment cterm=italic "set background=dark "set termguicolors +" Enable highlighting of the current line +set cursorline """""""""" END THEME """""""""" +"""""""""" BEGIN CONFIGS """""""""" + " Deoplete let g:deoplete#enable_at_startup = 1 - " Startify let g:startify_custom_header = [ \ ' ', @@ -119,10 +153,9 @@ let g:startify_custom_header = [ " Tagbar nmap :TagbarToggle - " NERDTree nmap :NERDTreeToggle +"""""""""" END CONFIGS """""""""" - - +"TODO figure out cscope diff --git a/tags b/tags index 8828e757..961bc9a0 100644 --- a/tags +++ b/tags @@ -5,16 +5,25 @@ !_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ !_TAG_PROGRAM_URL https://ctags.io/ /official site/ !_TAG_PROGRAM_VERSION 0.0.0 /f76ed534/ - init.vim /^nnoremap :nohlsearch$/;" m init.vim /^nnoremap $/;" m init.vim /^nnoremap h$/;" m init.vim /^nnoremap j$/;" m init.vim /^nnoremap k$/;" m init.vim /^nnoremap l$/;" m + init.vim /^ nnoremap :resize +2$/;" m + init.vim /^nnoremap :split$/;" m + init.vim /^nnoremap :only$/;" m init.vim /^nmap :NERDTreeToggle$/;" m init.vim /^nnoremap :set nonumber!$/;" m + init.vim /^nnoremap :nohlsearch$/;" m init.vim /^nmap :TagbarToggle$/;" m + init.vim /^nnoremap :vsplit$/;" m + init.vim /^ nnoremap :vertical resize -2$/;" m + init.vim /^ nnoremap :vertical resize +2$/;" m + init.vim /^inoremap pumvisible() ? "\\" : "\\"$/;" m + init.vim /^ nnoremap :resize -2$/;" m g:deoplete#enable_at_startup init.vim /^let g:deoplete#enable_at_startup = 1$/;" v +g:elite_mode init.vim /^let g:elite_mode=1$/;" v g:space_vim_dark_background init.vim /^let g:space_vim_dark_background = 233$/;" v g:startify_custom_header init.vim /^let g:startify_custom_header = [ /;" v nvim README.md /^# nvim$/;" c -- cgit v1.2.3