From 60156fc620a325cae1b42aafb344476445b25bf6 Mon Sep 17 00:00:00 2001 From: "Curt Mills, WE7U" Date: Tue, 30 Apr 2019 13:18:50 -0700 Subject: [PATCH] Add Emacs and Vim config files Emacs needs one per project, Vim needs one per directory. Instructions for configuring Vim to use the file are listed at the top of the .vimrc files. --- .dir-locals.el | 4 ++++ .vimrc | 37 +++++++++++++++++++++++++++++++++++++ callpass/.vimrc | 37 +++++++++++++++++++++++++++++++++++++ config/.vimrc | 37 +++++++++++++++++++++++++++++++++++++ resources/.vimrc | 37 +++++++++++++++++++++++++++++++++++++ 5 files changed, 152 insertions(+) create mode 100644 .dir-locals.el create mode 100644 .vimrc create mode 100644 callpass/.vimrc create mode 100644 config/.vimrc create mode 100644 resources/.vimrc diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..9385aa2 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,4 @@ +((nil . ((indent-tabs-mode . t) + (c-basic-offset . 4) + (tab-width . 4)) + )) diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..84b3645 --- /dev/null +++ b/.vimrc @@ -0,0 +1,37 @@ +" +" Per-project .vimrc file: Configures Vim per Xastir project standards. +" +" Add these two files to the end of your ~/.vimrc file: +" +" set exrc +" set secure +" + + +" Set compatibility to Vim only +set nocompatible + +" Turn on syntax highlighting +syntax on + +" Tab equals 4 columns +set tabstop=4 +set softtabstop=4 + +" Insert spaces instead of tab characters +set expandtab + +" Control how many columns text is indented with the reindent +" operations (<< and >>) and automatic C-style indentation. +set shiftwidth=4 + +" When off, a always inserts blanks according to 'tabstop' or +" 'softtabstop'. 'shiftwidth' is only used for shifting text left or +" right |shift-left-right|. +set nosmarttab + +" Display different types of white spaces. +"set list +"set listchars=tab:#\ ,trail:#,extends:#,nbsp:. + + diff --git a/callpass/.vimrc b/callpass/.vimrc new file mode 100644 index 0000000..84b3645 --- /dev/null +++ b/callpass/.vimrc @@ -0,0 +1,37 @@ +" +" Per-project .vimrc file: Configures Vim per Xastir project standards. +" +" Add these two files to the end of your ~/.vimrc file: +" +" set exrc +" set secure +" + + +" Set compatibility to Vim only +set nocompatible + +" Turn on syntax highlighting +syntax on + +" Tab equals 4 columns +set tabstop=4 +set softtabstop=4 + +" Insert spaces instead of tab characters +set expandtab + +" Control how many columns text is indented with the reindent +" operations (<< and >>) and automatic C-style indentation. +set shiftwidth=4 + +" When off, a always inserts blanks according to 'tabstop' or +" 'softtabstop'. 'shiftwidth' is only used for shifting text left or +" right |shift-left-right|. +set nosmarttab + +" Display different types of white spaces. +"set list +"set listchars=tab:#\ ,trail:#,extends:#,nbsp:. + + diff --git a/config/.vimrc b/config/.vimrc new file mode 100644 index 0000000..84b3645 --- /dev/null +++ b/config/.vimrc @@ -0,0 +1,37 @@ +" +" Per-project .vimrc file: Configures Vim per Xastir project standards. +" +" Add these two files to the end of your ~/.vimrc file: +" +" set exrc +" set secure +" + + +" Set compatibility to Vim only +set nocompatible + +" Turn on syntax highlighting +syntax on + +" Tab equals 4 columns +set tabstop=4 +set softtabstop=4 + +" Insert spaces instead of tab characters +set expandtab + +" Control how many columns text is indented with the reindent +" operations (<< and >>) and automatic C-style indentation. +set shiftwidth=4 + +" When off, a always inserts blanks according to 'tabstop' or +" 'softtabstop'. 'shiftwidth' is only used for shifting text left or +" right |shift-left-right|. +set nosmarttab + +" Display different types of white spaces. +"set list +"set listchars=tab:#\ ,trail:#,extends:#,nbsp:. + + diff --git a/resources/.vimrc b/resources/.vimrc new file mode 100644 index 0000000..84b3645 --- /dev/null +++ b/resources/.vimrc @@ -0,0 +1,37 @@ +" +" Per-project .vimrc file: Configures Vim per Xastir project standards. +" +" Add these two files to the end of your ~/.vimrc file: +" +" set exrc +" set secure +" + + +" Set compatibility to Vim only +set nocompatible + +" Turn on syntax highlighting +syntax on + +" Tab equals 4 columns +set tabstop=4 +set softtabstop=4 + +" Insert spaces instead of tab characters +set expandtab + +" Control how many columns text is indented with the reindent +" operations (<< and >>) and automatic C-style indentation. +set shiftwidth=4 + +" When off, a always inserts blanks according to 'tabstop' or +" 'softtabstop'. 'shiftwidth' is only used for shifting text left or +" right |shift-left-right|. +set nosmarttab + +" Display different types of white spaces. +"set list +"set listchars=tab:#\ ,trail:#,extends:#,nbsp:. + +