From e5dfb045b994e1ab8fef9ef5d3f02ce20ea6b685 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 16:55:42 -0500 Subject: many more renames --- dot_vim/c-support/rc/customization.ctags | 7 ++ dot_vim/c-support/rc/customization.gvimrc | 44 ++++++++ dot_vim/c-support/rc/customization.indent.pro | 8 ++ dot_vim/c-support/rc/customization.vimrc | 149 ++++++++++++++++++++++++++ 4 files changed, 208 insertions(+) create mode 100644 dot_vim/c-support/rc/customization.ctags create mode 100644 dot_vim/c-support/rc/customization.gvimrc create mode 100644 dot_vim/c-support/rc/customization.indent.pro create mode 100644 dot_vim/c-support/rc/customization.vimrc (limited to 'dot_vim/c-support/rc') diff --git a/dot_vim/c-support/rc/customization.ctags b/dot_vim/c-support/rc/customization.ctags new file mode 100644 index 0000000..75ccd5a --- /dev/null +++ b/dot_vim/c-support/rc/customization.ctags @@ -0,0 +1,7 @@ + +--regex-make=/^([^:# \t]+)[ \t]*[:]{1,2}/\1/t,targets/ + +--langdef=qmake +--langmap=qmake:+.pro +--regex-qmake=/^([[:upper:]_]+)/\1/t,SystemVariables/ + diff --git a/dot_vim/c-support/rc/customization.gvimrc b/dot_vim/c-support/rc/customization.gvimrc new file mode 100644 index 0000000..ff3d690 --- /dev/null +++ b/dot_vim/c-support/rc/customization.gvimrc @@ -0,0 +1,44 @@ +" +"=============================================================================== +"========== example gvimrc from the distribution ============================== +"=============================================================================== +" +runtime gvimrc_example.vim +" +" +"=============================================================================== +"========== CUSTOMIZATION (gvimrc) =========================================== +"=============================================================================== +" +"------------------------------------------------------------------------------- +" Moving cursor to other windows +" +" shift down : change window focus to lower one (cyclic) +" shift up : change window focus to upper one (cyclic) +" shift left : change window focus to one on left +" shift right : change window focus to one on right +"------------------------------------------------------------------------------- +" +nmap w +nmap W +nmap h +nmap l +" +" +"------------------------------------------------------------------------------- +" some additional hot keys +"------------------------------------------------------------------------------- +" S-F3 - call gvim file browser +"------------------------------------------------------------------------------- +" + map :silent browse confirm e +imap :silent browse confirm e +" +" +"------------------------------------------------------------------------------- +" toggle insert mode <--> 'normal mode with the -key +"------------------------------------------------------------------------------- +" +nmap +imap +" diff --git a/dot_vim/c-support/rc/customization.indent.pro b/dot_vim/c-support/rc/customization.indent.pro new file mode 100644 index 0000000..95f6081 --- /dev/null +++ b/dot_vim/c-support/rc/customization.indent.pro @@ -0,0 +1,8 @@ +--blank-lines-after-procedures +--brace-indent0 +--comment-indentation49 +--declaration-comment-column49 +--declaration-indentation10 +--space-after-parentheses +--swallow-optional-blank-lines +--tab-size2 diff --git a/dot_vim/c-support/rc/customization.vimrc b/dot_vim/c-support/rc/customization.vimrc new file mode 100644 index 0000000..f9ab5a7 --- /dev/null +++ b/dot_vim/c-support/rc/customization.vimrc @@ -0,0 +1,149 @@ +" +"=============================================================================== +"========== load example vimrc from the distribution ========================= +"=============================================================================== +" +runtime vimrc_example.vim +" +filetype plugin on +" +"=============================================================================== +"========== CUSTOMIZATION (vimrc) ============================================ +"=============================================================================== +" +" Platform specific items: +" - central backup directory (has to be created) +" - default dictionary +" Uncomment your choice. +if has("win16") || has("win32") || has("win64") || + \ has("win95") || has("win32unix") + " +" runtime mswin.vim +" set backupdir =$VIM\vimfiles\backupdir +" set dictionary=$VIM\vimfiles\wordlists/german.list +else +" set backupdir =$HOME/.vim.backupdir +" set dictionary=$HOME/.vim/wordlists/german.list +endif +" +" Using a backupdir under UNIX/Linux: you may want to include a line similar to +" find $HOME/.vim.backupdir -name "*" -type f -mtime +60 -exec rm -f {} \; +" in one of your shell startup files (e.g. $HOME/.profile) +" +"------------------------------------------------------------------------------- +" Use of dictionaries +"------------------------------------------------------------------------------- +" +set complete+=k " scan the files given with the 'dictionary' option +" +"------------------------------------------------------------------------------- +" Various settings +"------------------------------------------------------------------------------- +" +set autoread " read open files again when changed outside Vim +set autowrite " write a modified buffer on each :next , ... +set browsedir =current " which directory to use for the file browser +set incsearch " use incremental search +set nowrap " do not wrap lines +set shiftwidth =2 " number of spaces to use for each step of indent +set tabstop =2 " number of spaces that a in the file counts for +set visualbell " visual bell instead of beeping +" +" +"------------------------------------------------------------------------------- +" some additional hot keys +"------------------------------------------------------------------------------- +" F2 - write file without confirmation +" F3 - call file explorer Ex +" F4 - show tag under curser in the preview window (tagfile must exist!) +" F5 - open quickfix error window +" F6 - close quickfix error window +" F7 - display previous error +" F8 - display next error +" S-Tab - Fast switching between buffers (see below) +" C-q - Leave the editor with Ctrl-q (see below) +"------------------------------------------------------------------------------- +" +map :write +map :Explore +nmap :exe ":ptag ".expand("") +map :copen +map :cclose +map :cp +map :cn +" +imap :write +imap :Explore +imap :exe ":ptag ".expand("") +imap :copen +imap :cclose +imap :cp +imap :cn +" +"------------------------------------------------------------------------------- +" Fast switching between buffers +" The current buffer will be saved before switching to the next one. +" Choose :bprevious or :bnext +"------------------------------------------------------------------------------- +" + map :if &modifiable && !&readonly && + \ &modified :write :endif:bprevious +imap :if &modifiable && !&readonly && + \ &modified :write :endif:bprevious +" +"------------------------------------------------------------------------------- +" Leave the editor with Ctrl-q : Write all changed buffers and exit Vim +"------------------------------------------------------------------------------- +nmap :wqa +" +"------------------------------------------------------------------------------- +" autocomplete parenthesis, brackets and braces +"------------------------------------------------------------------------------- +inoremap ( () +inoremap [ [] +inoremap { {} +" +vnoremap ( s()P% +vnoremap [ s[]P% +vnoremap { s{}P% +" +"------------------------------------------------------------------------------- +" Change the working directory to the directory containing the current file +"------------------------------------------------------------------------------- +if has("autocmd") + autocmd BufEnter * :lchdir %:p:h +endif " has("autocmd") +" +"------------------------------------------------------------------------------- +" Filename completion +" +" wildmenu : command-line completion operates in an enhanced mode +" wildignore : A file that matches with one of these +" patterns is ignored when completing file or directory names. +"------------------------------------------------------------------------------- +" +set wildmenu +set wildignore=*.bak,*.o,*.e,*~ +" +"------------------------------------------------------------------------------- +" print options (pc = percentage of the media size) +"------------------------------------------------------------------------------- +set printoptions=left:8pc,right:3pc +" +"------------------------------------------------------------------------------- +" taglist.vim : toggle the taglist window +" taglist.vim : define the title texts for make +" taglist.vim : define the title texts for qmake +"------------------------------------------------------------------------------- + noremap :Tlist +inoremap :Tlist + +let tlist_make_settings = 'make;m:makros;t:targets' + +let tlist_qmake_settings = 'qmake;t:SystemVariables' + +if has("autocmd") + " ---------- qmake : set filetype for *.pro ---------- + autocmd BufNewFile,BufRead *.pro set filetype=qmake +endif " has("autocmd") + -- cgit v1.2.3