From a9745de16322957359eacd696e261194ba718202 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Thu, 2 Aug 2018 20:24:06 +0200 Subject: [PATCH] Move vimfiles to submodule step1 --- .vim/gvimrc | 46 --- .vim/pack/github/opt/Tortoise-Typing | 1 - .vim/pack/github/opt/ale | 1 - .vim/pack/github/opt/asyncrun.vim | 1 - .vim/pack/github/opt/completor.vim | 1 - .vim/pack/github/opt/errormarker.vim | 1 - .../opt/gtags-cscope/plugin/gtags-cscope.vim | 273 ------------- .vim/pack/github/opt/incsearch.vim | 1 - .vim/pack/github/opt/mesonic | 1 - .vim/pack/github/opt/pick.vim | 1 - .vim/pack/github/opt/supertab | 1 - .vim/pack/github/opt/tagbar | 1 - .vim/pack/github/opt/validator.vim | 1 - .vim/pack/github/opt/vim-airline | 1 - .vim/pack/github/opt/vim-javascript | 1 - .vim/pack/github/opt/vim-pandoc | 1 - .vim/pack/github/opt/vim-pandoc-syntax | 1 - .vim/pack/github/opt/vim-syntax-extra | 1 - .vim/pack/snipmate/opt/tlib_vim | 1 - .vim/pack/snipmate/opt/vim-addon-mw-utils | 1 - .vim/pack/snipmate/opt/vim-snipmate | 1 - .vim/pack/snipmate/opt/vim-snippets | 1 - .vim/pack/tpope/start/commentary | 1 - .vim/pack/tpope/start/vim-fugitive | 1 - .vim/pack/tpope/start/vim-repeat | 1 - .vim/pack/tpope/start/vim-surround | 1 - .vim/pack/tpope/start/vim-unimpaired | 1 - .vim/pack/tpope/start/vim-vinegar | 1 - .vim/vimrc | 360 ------------------ 29 files changed, 705 deletions(-) delete mode 100644 .vim/gvimrc delete mode 160000 .vim/pack/github/opt/Tortoise-Typing delete mode 160000 .vim/pack/github/opt/ale delete mode 160000 .vim/pack/github/opt/asyncrun.vim delete mode 160000 .vim/pack/github/opt/completor.vim delete mode 160000 .vim/pack/github/opt/errormarker.vim delete mode 100644 .vim/pack/github/opt/gtags-cscope/plugin/gtags-cscope.vim delete mode 160000 .vim/pack/github/opt/incsearch.vim delete mode 160000 .vim/pack/github/opt/mesonic delete mode 160000 .vim/pack/github/opt/pick.vim delete mode 160000 .vim/pack/github/opt/supertab delete mode 160000 .vim/pack/github/opt/tagbar delete mode 160000 .vim/pack/github/opt/validator.vim delete mode 160000 .vim/pack/github/opt/vim-airline delete mode 160000 .vim/pack/github/opt/vim-javascript delete mode 160000 .vim/pack/github/opt/vim-pandoc delete mode 160000 .vim/pack/github/opt/vim-pandoc-syntax delete mode 160000 .vim/pack/github/opt/vim-syntax-extra delete mode 160000 .vim/pack/snipmate/opt/tlib_vim delete mode 160000 .vim/pack/snipmate/opt/vim-addon-mw-utils delete mode 160000 .vim/pack/snipmate/opt/vim-snipmate delete mode 160000 .vim/pack/snipmate/opt/vim-snippets delete mode 160000 .vim/pack/tpope/start/commentary delete mode 160000 .vim/pack/tpope/start/vim-fugitive delete mode 160000 .vim/pack/tpope/start/vim-repeat delete mode 160000 .vim/pack/tpope/start/vim-surround delete mode 160000 .vim/pack/tpope/start/vim-unimpaired delete mode 160000 .vim/pack/tpope/start/vim-vinegar delete mode 100644 .vim/vimrc diff --git a/.vim/gvimrc b/.vim/gvimrc deleted file mode 100644 index 1365d09..0000000 --- a/.vim/gvimrc +++ /dev/null @@ -1,46 +0,0 @@ - -" Use :help 'option' to see the documentation for the given option. - -set guioptions+=a -set guioptions=egmrti -set guioptions-=m "no menu bar -set guioptions-=T "no toolbar -set guioptions-=r "no scroolbar -set noguipty - -" mouse -set mousemodel=popup -set mousehide -set mouse=a - - -" mapping -map -map! - -" colors -highlight normal guibg=black guifg=white -highlight linenr guifg=grey -highlight BadWhitespace guifg=red - -set gcr=a:blinkon0 - -" fonts -set guifont=Monospace\ 10 -if has("mac") -" set guifont=Menlo:h12 - set guifont=monaco:h11 -elseif has("unix") -" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 - set guifont=inconsolata\ 11 -elseif has("win32") -" set guifont=consolas:h11,courier\ new:h10 - set guifont=consolas:h10:cANSI:qDRAFT -endif - -" help -if has("win32") - let winhelpfile='windows.hlp' - map K :execute "!start winhlp32 -k " . winhelpfile -endif - diff --git a/.vim/pack/github/opt/Tortoise-Typing b/.vim/pack/github/opt/Tortoise-Typing deleted file mode 160000 index 3ec01ed..0000000 --- a/.vim/pack/github/opt/Tortoise-Typing +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3ec01ed3ff192620194e538670ed331d658e7f13 diff --git a/.vim/pack/github/opt/ale b/.vim/pack/github/opt/ale deleted file mode 160000 index 22533f2..0000000 --- a/.vim/pack/github/opt/ale +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 22533f2c1f09bcf19dfba9e24a6a948c3d2716c0 diff --git a/.vim/pack/github/opt/asyncrun.vim b/.vim/pack/github/opt/asyncrun.vim deleted file mode 160000 index a81b997..0000000 --- a/.vim/pack/github/opt/asyncrun.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a81b9972337c61a28786e71ca87e84fa6a756ec7 diff --git a/.vim/pack/github/opt/completor.vim b/.vim/pack/github/opt/completor.vim deleted file mode 160000 index d404cea..0000000 --- a/.vim/pack/github/opt/completor.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d404ceaa8c9ca6e60f8729d9d6ff94c3ceeb43f2 diff --git a/.vim/pack/github/opt/errormarker.vim b/.vim/pack/github/opt/errormarker.vim deleted file mode 160000 index 66ab8e0..0000000 --- a/.vim/pack/github/opt/errormarker.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 66ab8e0a356ea8a971e99156c59d09c3beae5ef2 diff --git a/.vim/pack/github/opt/gtags-cscope/plugin/gtags-cscope.vim b/.vim/pack/github/opt/gtags-cscope/plugin/gtags-cscope.vim deleted file mode 100644 index 3b6ab11..0000000 --- a/.vim/pack/github/opt/gtags-cscope/plugin/gtags-cscope.vim +++ /dev/null @@ -1,273 +0,0 @@ -" File: gtags-cscope.vim -" Author: Tama Communications Corporation -" Version: 0.4.1 -" Last Modified: September 10, 2014 -" -" Copyright and license -" --------------------- -" Copyright (c) 2010, 2011 Tama Communications Corporation -" -" This file is part of GNU GLOBAL. -" -" This program is free software: you can redistribute it and/or modify -" it under the terms of the GNU General Public License as published by -" the Free Software Foundation, either version 3 of the License, or -" (at your option) any later version. -" -" This program is distributed in the hope that it will be useful, -" but WITHOUT ANY WARRANTY; without even the implied warranty of -" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -" GNU General Public License for more details. -" -" You should have received a copy of the GNU General Public License -" along with this program. If not, see . -" -" Overview -" -------- -" The gtags-cscope.vim plugin script integrates the GNU GLOBAL source code tagging system -" with Vim using cscope interface. -" -" Installation -" ------------ -" Drop the file in your plugin directory or source it from your vimrc. -" To use this script, you need the GNU GLOBAL-5.8 or later installed -" in your machine. -" -" Usage -" ----- -" First of all, you must execute gtags(1) at the root of source directory -" to make tag files. Assuming that your source directory is '/var/src', -" it is neccessary to execute the following commands. -" -" [Load vim] -" $ cd /var/src -" $ gtags -" $ vim -" [Load gtags-cscope] -" :GtagsCscope (in vim command line) -" -" Basic command -" ------------- -" Then you can use cs commands except for the 'd'(2) command. -" Profitable commands are assigned to keys like follows: -" -" explanation command -" ---------------------------------------------------------- -" Find symbol :cs find 0 or s -" Find definition :cs find 1 or g -" Find functions called by this function (not implemented) -" Find reference :cs find 3 or c -" Find text string :cs find 4 or t -" Find egrep pattern :cs find 6 or e -" Find path :cs find 7 or f -" Find include file :cs find 8 or i -" -" You can move tag list using: -" Go to the next tag :tn -" Go to the previous tag :tp -" Pop tag stack :pop -" -" About the other tag command, you can see the help like this: -" -" :h tagsrch -" -" Enhancing command -" ----------------- -" You can use the context jump function. To use this function, put the cursor -" on a word and type . -" If you can use mouse then please double click on the left button. -" To pop tag, please type 'g' and click on the right button. -" -" Configure -" --------- -" You can use the following variables in $HOME/.vimrc. -" -" To use the default key/mouse mapping: -" let GtagsCscope_Auto_Map = 1 -" To ignore letter case when searching: -" let GtagsCscope_Ignore_Case = 1 -" To use absolute path name: -" let GtagsCscope_Absolute_Path = 1 -" To deterring interruption: -" let GtagsCscope_Keep_Alive = 1 -" If you hope auto loading: -" let GtagsCscope_Auto_Load = 1 -" To use 'vim -t ', ':tag' and '' -" set cscopetag -" -if exists("loaded_gtags_cscope") - finish -endif -if !has("cscope") - echohl WarningMsg | - \ echomsg 'Gtags-cscope: ' . 'This vim does not include cscope support.' | - \ echohl None - finish -endif -" -" global command name -" -let s:global_command = $GTAGSGLOBAL -if s:global_command == '' - let s:global_command = "global" -endif -if !exists("GtagsCscope_Auto_Load") - let GtagsCscope_Auto_Load = 0 -endif -if !exists("GtagsCscope_Auto_Map") - let GtagsCscope_Auto_Map = 0 -endif -if !exists("GtagsCscope_Use_Old_Key_Map") - let GtagsCscope_Use_Old_Key_Map = 0 -endif -if !exists("GtagsCscope_Quiet") - let GtagsCscope_Quiet = 0 -endif -if !exists("GtagsCscope_Ignore_Case") - let GtagsCscope_Ignore_Case = 0 -endif -if !exists("GtagsCscope_Absolute_Path") - let GtagsCscope_Absolute_Path = 0 -endif -if !exists("GtagsCscope_Keep_Alive") - let GtagsCscope_Keep_Alive = 0 -endif - -" -" Display error message. -" -function! s:Error(msg) - if (g:GtagsCscope_Quiet == 0) - echohl WarningMsg | - \ echomsg 'Gtags-cscope: ' . a:msg | - \ echohl None - endif -endfunction - -function! s:GtagsCscope_GtagsRoot() - let cmd = s:global_command . " -pq" - let cmd_output = system(cmd) - if v:shell_error != 0 - if v:shell_error == 3 - call s:Error('GTAGS not found.') - else - call s:Error('global command failed. command line: ' . cmd) - endif - return '' - endif - return strpart(cmd_output, 0, strlen(cmd_output) - 1) -endfunction - -function! s:GtagsCscope() - " - " Get gtagsroot directory. - " - let gtagsroot = s:GtagsCscope_GtagsRoot() - if gtagsroot == '' - return - endif - " - " Load gtags-cscope. - " - set csprg=gtags-cscope - let s:command = "cs add " . gtagsroot . "/GTAGS" - let s:option = '' - if g:GtagsCscope_Ignore_Case == 1 - let s:option = s:option . 'C' - endif - if g:GtagsCscope_Absolute_Path == 1 - let s:option = s:option . 'a' - endif - if g:GtagsCscope_Keep_Alive == 1 - let s:option = s:option . 'i' - endif - if s:option != '' - let s:command = s:command . ' . -' . s:option - endif - set nocscopeverbose - exe s:command - set cscopeverbose - " - " Key mapping - " - if g:GtagsCscope_Auto_Map == 1 - if g:GtagsCscope_Use_Old_Key_Map == 1 - " normal command - :nmap s :cs find s =expand("") - :nmap t :cs find g =expand("") - :nmap r :cs find c =expand("") - :nmap g :cs find e =expand("") - :nmap P :cs find f - " Using 'CTRL-spacebar', the result is displayed in new horizontal window. - :nmap s :scs find s =expand("") - :nmap t :scs find g =expand("") - :nmap r :scs find c =expand("") - :nmap g :scs find e =expand("") - :nmap P :scs find f - " Hitting CTRL-space *twice*, the result is displayed in new vertical window. - :nmap s :vert scs find s =expand("") - :nmap t :vert scs find g =expand("") - :nmap r :vert scs find c =expand("") - :nmap g :vert scs find e =expand("") - :nmap P :vert scs find f - else - " - " The following key mappings are derived from 'cscope_maps.vim'. - " (The 'd' command is not implemented in gtags-cscope.) - " - " normal command - :nmap s :cs find s =expand("") - :nmap g :cs find g =expand("") - :nmap c :cs find c =expand("") - :nmap t :cs find t =expand("") - :nmap e :cs find e =expand("") - :nmap f :cs find f =expand("") - :nmap i :cs find i =expand("") - ":nmap d :cs find d =expand("") - " Using 'CTRL-spacebar', the result is displayed in new horizontal window. - :nmap s :scs find s =expand("") - :nmap g :scs find g =expand("") - :nmap c :scs find c =expand("") - :nmap t :scs find t =expand("") - :nmap e :scs find e =expand("") - :nmap f :scs find f =expand("") - :nmap i :scs find i =expand("") - ":nmap d :scs find d =expand("") - " Hitting CTRL-space *twice*, the result is displayed in new vertical window. - :nmap s :vert scs find s =expand("") - :nmap g :vert scs find g =expand("") - :nmap c :vert scs find c =expand("") - :nmap t :vert scs find t =expand("") - :nmap e :vert scs find e =expand("") - :nmap f :vert scs find f =expand("") - :nmap i :vert scs find i =expand("") - ":nmap d :vert scs find d =expand("") - endif - " tag command - :nmap :tn - :nmap :tp - :nmap :cn - :nmap :cp - " Context search. See the --from-here option of global(1). - :nmap :cs find d =expand(""):=line('.'):% - :nmap <2-LeftMouse> :cs find d =expand(""):=line('.'):% - :nmap g :cs find d =expand(""):=line('.'):% - :nmap :cs find d =expand(""):=line('.'):% - " The following mappings are unnecessary, because you can use the default mapping. - ":nmap g - ":nmap - " Short cut key - :nmap :cs find - :nmap :scs find - :nmap :vert scs find - :nmap :copen - :nmap :cs find d =expand(""):=line('.'):% - :nmap :cclose - endif -endfunction - -if g:GtagsCscope_Auto_Load == 1 - call s:GtagsCscope() -endif -command! -nargs=0 GtagsCscope call s:GtagsCscope() -let loaded_gtags_cscope = 1 diff --git a/.vim/pack/github/opt/incsearch.vim b/.vim/pack/github/opt/incsearch.vim deleted file mode 160000 index 25e2547..0000000 --- a/.vim/pack/github/opt/incsearch.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 25e2547fb0566460f5999024f7a0de7b3775201f diff --git a/.vim/pack/github/opt/mesonic b/.vim/pack/github/opt/mesonic deleted file mode 160000 index 6db72c3..0000000 --- a/.vim/pack/github/opt/mesonic +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6db72c3d1a5c4bb0779a1250dd5f97c96ab202b1 diff --git a/.vim/pack/github/opt/pick.vim b/.vim/pack/github/opt/pick.vim deleted file mode 160000 index c59841c..0000000 --- a/.vim/pack/github/opt/pick.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c59841c9fffdcf96c4ee3a3564dd447ab612b919 diff --git a/.vim/pack/github/opt/supertab b/.vim/pack/github/opt/supertab deleted file mode 160000 index 40fe711..0000000 --- a/.vim/pack/github/opt/supertab +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 40fe711e088e2ab346738233dd5adbb1be355172 diff --git a/.vim/pack/github/opt/tagbar b/.vim/pack/github/opt/tagbar deleted file mode 160000 index 387bbad..0000000 --- a/.vim/pack/github/opt/tagbar +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 387bbadda98e1376ff3871aa461b1f0abd4ece70 diff --git a/.vim/pack/github/opt/validator.vim b/.vim/pack/github/opt/validator.vim deleted file mode 160000 index 531347a..0000000 --- a/.vim/pack/github/opt/validator.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 531347abf30d52b8dde02be975e2f9c3cbe8dd4e diff --git a/.vim/pack/github/opt/vim-airline b/.vim/pack/github/opt/vim-airline deleted file mode 160000 index 45c9621..0000000 --- a/.vim/pack/github/opt/vim-airline +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 45c9621157b5bc851804bfed57b8a504d55757b0 diff --git a/.vim/pack/github/opt/vim-javascript b/.vim/pack/github/opt/vim-javascript deleted file mode 160000 index 39e332a..0000000 --- a/.vim/pack/github/opt/vim-javascript +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 39e332a3c36c0115e1eab85c34cf121b7585869d diff --git a/.vim/pack/github/opt/vim-pandoc b/.vim/pack/github/opt/vim-pandoc deleted file mode 160000 index 3a68678..0000000 --- a/.vim/pack/github/opt/vim-pandoc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3a686781ab5ea622616798475deb394e48d3cc48 diff --git a/.vim/pack/github/opt/vim-pandoc-syntax b/.vim/pack/github/opt/vim-pandoc-syntax deleted file mode 160000 index 56e8e41..0000000 --- a/.vim/pack/github/opt/vim-pandoc-syntax +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 56e8e41ef863a0a7d33d85c3c0c895aa6e9e62d3 diff --git a/.vim/pack/github/opt/vim-syntax-extra b/.vim/pack/github/opt/vim-syntax-extra deleted file mode 160000 index 2290b72..0000000 --- a/.vim/pack/github/opt/vim-syntax-extra +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2290b72ba48c808d741db300110944a484b8ee9c diff --git a/.vim/pack/snipmate/opt/tlib_vim b/.vim/pack/snipmate/opt/tlib_vim deleted file mode 160000 index ced8f3e..0000000 --- a/.vim/pack/snipmate/opt/tlib_vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ced8f3ebe85b50da2ec0e6d593e6b2e8e6bd243b diff --git a/.vim/pack/snipmate/opt/vim-addon-mw-utils b/.vim/pack/snipmate/opt/vim-addon-mw-utils deleted file mode 160000 index 295862b..0000000 --- a/.vim/pack/snipmate/opt/vim-addon-mw-utils +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 295862ba6be47ec3b11b6c85c10d982ffd9bc0b2 diff --git a/.vim/pack/snipmate/opt/vim-snipmate b/.vim/pack/snipmate/opt/vim-snipmate deleted file mode 160000 index a9802f2..0000000 --- a/.vim/pack/snipmate/opt/vim-snipmate +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a9802f2351910f64b70fb10b63651e6ff6b8125e diff --git a/.vim/pack/snipmate/opt/vim-snippets b/.vim/pack/snipmate/opt/vim-snippets deleted file mode 160000 index 103523d..0000000 --- a/.vim/pack/snipmate/opt/vim-snippets +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 103523dbc5e0482365d5f6f9bc8ccf4101433c43 diff --git a/.vim/pack/tpope/start/commentary b/.vim/pack/tpope/start/commentary deleted file mode 160000 index 141d9d3..0000000 --- a/.vim/pack/tpope/start/commentary +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 141d9d32a9fb58fe474fcc89cd7221eb2dd57b3a diff --git a/.vim/pack/tpope/start/vim-fugitive b/.vim/pack/tpope/start/vim-fugitive deleted file mode 160000 index 8fa5cad..0000000 --- a/.vim/pack/tpope/start/vim-fugitive +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8fa5cad8d7502be2f3438d02f353ab62264d358e diff --git a/.vim/pack/tpope/start/vim-repeat b/.vim/pack/tpope/start/vim-repeat deleted file mode 160000 index 43d2678..0000000 --- a/.vim/pack/tpope/start/vim-repeat +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 43d2678fa59d068c815d8298331c195e850ff5a7 diff --git a/.vim/pack/tpope/start/vim-surround b/.vim/pack/tpope/start/vim-surround deleted file mode 160000 index 5970688..0000000 --- a/.vim/pack/tpope/start/vim-surround +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 597068870b8f093a8b2d11536c62ff31222ee8d0 diff --git a/.vim/pack/tpope/start/vim-unimpaired b/.vim/pack/tpope/start/vim-unimpaired deleted file mode 160000 index f185e75..0000000 --- a/.vim/pack/tpope/start/vim-unimpaired +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f185e75b87a092162099ca2781626253a5a41a67 diff --git a/.vim/pack/tpope/start/vim-vinegar b/.vim/pack/tpope/start/vim-vinegar deleted file mode 160000 index 7b9dff8..0000000 --- a/.vim/pack/tpope/start/vim-vinegar +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7b9dff85aec34a0be1a6980b2e686a5d27d70f63 diff --git a/.vim/vimrc b/.vim/vimrc deleted file mode 100644 index b54aea8..0000000 --- a/.vim/vimrc +++ /dev/null @@ -1,360 +0,0 @@ -" Use :help 'option' to see the documentation for the given option. -set nocompatible -filetype plugin indent on -syntax on - -" indentation -set expandtab -set shiftwidth=2 -set softtabstop=2 -set autoindent -set copyindent -set smarttab -set linebreak -set textwidth=0 -set breakindent -set breakindent showbreak=\ + -set shiftround -set formatoptions+=j - -" searching -set incsearch -set hlsearch -set ignorecase -set smartcase -set showmatch -set complete-=i -set virtualedit=block -if has('unnamedplus') - set clipboard=unnamed,unnamedplus -endif - -" display -set scrolloff=1 -set scrolljump=5 -set sidescrolloff=5 -set display+=lastline -set lazyredraw -set number -set relativenumber -set title -set titlestring=%F -set matchtime=2 - -" folding -set foldmethod=syntax -set foldlevelstart=10 -set foldnestmax=10 -set foldopen+=search -set foldclose=all - -" keyboard -set backspace=indent,eol,start -set ttimeoutlen=10 -set winaltkeys=no -set noerrorbells -set novisualbell -set t_vb= - -" command/status line -set showmode -set showcmd -set ruler -set laststatus=2 -set cmdheight=2 -set shortmess=aoOTI -set wildmenu -set wildmode=longest:full,full -set wildignore+=tags,*.pyc,*.jpg,*.png,*.gif,*.zip -set wildoptions=tagfile - -" buffers -set hidden -set autoread -"set autowrite -"set autowriteall - -" temporary files -silent !mkdir -p ~/.vim/undo -set nobackup -set noswapfile -set undofile -set undodir=~/.vim/undo -set viminfo= -set history=1000 -set tags=.git/tags -set sessionoptions-=options -let g:session_directory = "~/.vim/session" -let g:session_autoload = "no" -let g:session_autosave = "no" -let g:session_command_aliases = 1 - -" system -set path=.,,** -set shell=bash -let g:is_posix = 1 -if has("win32") - set shell=cmd - set shellcmdflag=/c -endif -scriptencoding utf-8 -set encoding=utf-8 -set fileencoding=utf-8 -set fileencodings=utf-8,latin1,unicode -set fileformat=unix -set fileformats=unix,dos,mac -set fileignorecase - -" colors -set t_Co=256 -set background=dark -highlight linenr ctermfg=grey -highlight BadWhitespace ctermfg=red -match BadWhitespace /\s\+$/ - -" fonts and chars -set list -if has('multi_byte') && &encoding ==# 'utf-8' - let &listchars = 'tab:▸ ,extends:❯,precedes:❮,nbsp:±' -else - let &listchars = 'tab:> ,extends:>,precedes:<,nbsp:.' -endif -set cursorline -let &t_ti.="\e[1 q" -let &t_SI.="\e[5 q" -let &t_EI.="\e[1 q" -let &t_te.="\e[0 q" - -"Basic Mappings -let mapleader = "\" - -noremap -noremap -noremap -noremap -noremap! -noremap! - -" Normal Mode Mappings -"nnoremap hh -"nnoremap jj -"nnoremap kk -"nnoremap ll -nnoremap ; : -nnoremap : ; -nnoremap n nzzzv -nnoremap N Nzzzv -nnoremap + :exe "resize " . (winheight(0) * 3/2) -nnoremap - :exe "resize " . (winheight(0) * 2/3) -nnoremap :noh -nnoremap v :edit $MYVIMRC -nnoremap s :term -nnoremap m :wa:Make -nnoremap * :grep \| copen -nnoremap t :TagbarToggle -"nnoremap html :-1read ~/.vim/template/html3jwf>a -"nnoremap php :-1read ~/.vim/template/php2ja - -"" Visual Mode Mappings -vnoremap jk -vnoremap -vmap < >gv - -" Insert Mode Mappings -inoremap jk -inoremap -inoremap m :wa:Makei -inoremap u - -" Command Mode Mappings -cnoremap -cnoremap - -" Command aliases -cnoreabbrev w!! w !sudo tee "%" - -" Termninal Mappings -tnoremap h -tnoremap j -tnoremap k -tnoremap l - -" Functions - -" Netrw -let g:netrw_liststyle=3 -let g:netrw_banner = 0 -let g:netrw_sort_sequence = '[\/]$,*' -let g:netrw_list_hide = '\(^\|\s\s\)\zs\.\S\+' -"let g:netrw_winsize = 25 -"augroup ProjectDrawer -" autocmd! -" autocmd VimEnter * :Lexplore -"augroup END - -" grep -" file:line:coloumn:message -set grepformat^=%f:%l:%c:%m -set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc -command! -nargs=1 Ngrep lvimgrep "" $HOME/cloud/Notes/**/*.md - -function! s:CmakeInit() - let &errorformat="%f(%l) : %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f(%l) : %m,%*[^ ] %f %l: %m,%f:%l:%c:%m,%f(%l):%m,%f|%l| %m" - set makeprg=cmake -endfunction -command! -bang -nargs=0 -complete=file CmakeInit call s:CmakeInit() - -function! s:Doxygen() - set errorformat+=%f:%l:\ %m - set makeprg=doxygen -endfunction -command! -bang -nargs=0 -complete=file Doxygen call s:Doxygen() - -function! s:Iar() - set errorformat=%f(%l)\ :\ %m - set makeprg=vim-iarbuild.cmd -endfunction -command! -bang -nargs=0 -complete=file Iar call s:Iar() - -" Autocommands -if has('autocmd') - augroup expandtabs - autocmd! - autocmd FileType c setlocal expandtab softtabstop=2 shiftwidth=2 - autocmd FileType cpp setlocal expandtab softtabstop=2 shiftwidth=2 - autocmd FileType make setlocal noexpandtab tabstop=8 shiftwidth=8 - autocmd FileType python setlocal expandtab softtabstop=4 shiftwidth=4 - \ formatoptions+=croq colorcolumn=79 - \ cinwords=if,elif,else,for,while,try,except,finally,def,class,with - augroup end - - augroup filetypes - autocmd! - autocmd bufnewfile,bufread *.md,*.txt set filetype=pandoc - autocmd bufnewfile,bufread *.gradle set filetype=groovy - autocmd bufnewfile,bufread *.json set filetype=json - autocmd bufnewfile,bufread *.yml set filetype=yaml - augroup end - - augroup saveall - autocmd! - autocmd focuslost * wall - augroup end - - augroup numbers - autocmd! - autocmd bufenter,focusgained,insertleave * set relativenumber - autocmd bufleave,focuslost,insertenter * set norelativenumber - augroup end - - augroup vimrc - autocmd! - autocmd bufwritepost ~/.vim/gvimrc silent source % - autocmd bufwritepost ~/.vim/vimrc silent source % - autocmd bufwritepost ~/.vim/vimrc.local silent source % - augroup end - - augroup quickfix -" autocmd QuickFixCmdPost [^l]* nested cwindow -" autocmd QuickFixCmdPost l* nested lwindow - autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1) - augroup end -endif - -" Airline -packadd! vim-airline - -let g:airline#extensions#tabline#enabled = 1 -let g:airline#extensions#tabline#formatter = 'unique_tail_improved' - -" ALE -"packadd! ale -"let g:ale_enabled = 1 -"let g:airline#extensions#ale#enabled = 1 - -" Tagbar -packadd! tagbar - -" Gtags-Cscope -packadd! gtags-cscope -set csprg=gtags-cscope -set cscopetag -let GtagsCscope_Auto_Map = 1 -let GtagsCscope_Ignore_Case = 1 -let GtagsCscope_Absolute_Path = 1 -let GtagsCscope_Keep_Alive = 1 -let GtagsCscope_Auto_Load = 1 -let GtagsCscope_Quiet = 1 - -" termdebug -"packadd! termdebug - -" shellmenu -"packadd! shellmenu - -" Async shell commands -packadd asyncrun.vim -let g:asyncrun_open = 8 -let g:asyncrun_status = "" -let g:airline_section_error = airline#section#create_right(['%{g:asyncrun_status}']) -let g:asyncrun_auto = "make" -command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ -command! -bang -nargs=* -complete=file Grep AsyncRun -program=grep @ - -" Error markers -packadd errormarker.vim - -" Meson build system -packadd mesonic - -" snipmate -packadd tlib_vim -packadd vim-addon-mw-utils -packadd vim-snipmate -packadd vim-snippets - -" stock vim -packadd! matchit -packadd! vim-syntax-extra - -" supertab -packadd supertab - -" Jedi (python) -"packadd jedi-vim -"let g:polyglot_disabled = ['python'] -"let python_highlight_all = 1 - -" completor -"packadd completor.vim -"let g:completor_clang_binary = '/usr/bin/clang' - -" validator -packadd validator.vim -let g:completor_clang_tidy_binary = '/usr/bin/run-clang-tidy' -let g:validator_c_checkers = ['clang-tidy'] -let g:validator_cpp_checkers = ['clang-tidy'] - -" Pandoc -packadd vim-pandoc -packadd vim-pandoc-syntax - -" Pick -packadd pick.vim -nnoremap p :call PickFile() -nnoremap b :call PickBuffer() -nnoremap ] :call PickTag() -let g:pick_height = 10 - -" javascript -packadd vim-javascript - -packloadall -silent! helptags ALL - -" local settings -if filereadable(expand('~/.vim/vimrc.local')) - source ~/.vim/vimrc.local -endif - -- 2.43.0