summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc100
1 files changed, 0 insertions, 100 deletions
diff --git a/.vimrc b/.vimrc
deleted file mode 100644
index 928755c..0000000
--- a/.vimrc
+++ /dev/null
@@ -1,100 +0,0 @@
-" Vim configuration file for bdunahu "
-
-" use vim defaults (much better) "
-set nocompatible
-
-" allow backspacing over everything in insert mode "
-set bs=indent,eol,start
-
-" disable mouse support "
-set mouse=
-
-" enable line numbers "
-set number relativenumber
-
-" highlight current line "
-set cursorline
-highlight Cursorline cterm=bold ctermbg=236
-highlight Cursor ctermfg=Black ctermbg=Yellow cterm=bold guifg=black guibg=yellow gui=bold
-
-" enable highlight search pattern "
-set hlsearch
-
-" enable smartcase search sensitivity "
-set ignorecase
-set smartcase
-
-" set maximum width of tab character "
-set tabstop=4
-
-" set tab key to stop at full tab "
-set softtabstop=4
-
-" amount of whitespace to add in normal mode "
-set shiftwidth=4
-
-" use space char instead of tab "
-set expandtab
-
-" autoindent in new line "
-set ai
-
-" show matching pair of () [] {} "
-set showmatch
-
-" enable wildmenu "
-set wildmenu
-set wildmode=longest:full,full
-" ignore files with these extensions "
-set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
-
-" set folding to indent, but disable nesting "
-set foldmethod=indent
-set foldnestmax=1
-
-" Only do this part when compiled with support for autocommands
-if has("autocmd")
- augroup redhat
- autocmd!
- " In text files, always limit the width of text to 78 characters
- " autocmd BufRead *.txt set tw=78
- " When editing a file, always jump to the last cursor position
- autocmd BufReadPost *
- \ if line("'\"") > 0 && line ("'\"") <= line("$") |
- \ exe "normal! g'\"" |
- \ endif
- " remove trailing whitespace from Python files "
- autocmd BufWritePre *.py :%s/\s\+$//e
- " don't write swapfile on most commonly used directories for NFS mounts or USB sticks
- autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
- " start with spec file template
- autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
- augroup END
-endif
-
-if has("cscope") && filereadable("/usr/bin/cscope")
- set csprg=/usr/bin/cscope
- set csto=0
- set cst
- set nocsverb
- " add any database in current directory
- if filereadable("cscope.out")
- cs add $PWD/cscope.out
- " else add database pointed to by environment
- elseif $CSCOPE_DB != ""
- cs add $CSCOPE_DB
- endif
- set csverb
-endif
-
-filetype plugin on
-
-" switch syntax highlighting on, when the terminal "
-" has colors.
-if &t_Co > 2 || has("gui_running")
- syntax on
- set hlsearch
-endif
-
-set background=dark
-set t_Co=16