dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0cb4fcdb9adbc31c42e74a6325f34e20357d38a5
parent e219fd4cfba0b344416e2cd26a5c564ba88ce5ad
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Tue, 24 Oct 2017 14:14:24 -0700

remove old code

Diffstat:
Mlinks/.vim/vimrc | 43++++++-------------------------------------
1 file changed, 6 insertions(+), 37 deletions(-)

diff --git a/links/.vim/vimrc b/links/.vim/vimrc @@ -1,25 +1,18 @@ -if has('vim_starting') - set nocompatible " Disable vi-compatibility -endif - -" Load plugins -source ~/.vim/plugins.vim +set nocompatible " Disable vi-compatibility filetype plugin indent on +source ~/.vim/plugins.vim + " Enable syntax highligting syntax on -source ~/.vim/appearance.vim - set textwidth=80 set autoindent set autoread " reload files when changed on disk set backspace=2 " fix broken backspace in some setups set backupcopy=yes " see :help crontab -"set clipboard=unnamed " yank and paste with the system clipboard set cursorline " highlight current line -"set encoding=utf-8 " Necessary to show unicode glyphs set expandtab " convert tab char to spaces set lbr " break lines between words set hlsearch " highlight search matches @@ -34,7 +27,6 @@ set pastetoggle=<F2> " toggle paste mode set ruler " Enable bottom ruler set scrolloff=3 " show context above-below cursorline set shiftwidth=4 " width for autoindents -"set showcmd set smartcase " case-sensitive search if any caps set softtabstop=4 " makes the tab key indent by four spaces set splitright " new vertical splits on the right side @@ -42,36 +34,13 @@ set tabstop=4 " a tab is 4 characters wide set wildmenu " show a navigable menu for tab completion set wildmode=longest,list,full -" enable basic mouse behavior -set mouse=a -if !has('nvim') - if exists('$TMUX') " support resizing in tmux - set ttymouse=xterm2 - endif -endif - -" fix cursor in tmux -if exists('$TMUX') - let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" - let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" -else - let &t_SI = "\<Esc>]50;CursorShape=1\x7" - let &t_EI = "\<Esc>]50;CursorShape=0\x7" -endif - " Dictionary word completion using Ctrl-x Ctrl-k " File from wordlist- (debian) or word- (arch) package set dictionary+=/usr/share/dict/words -source ~/.vim/keybinds.vim -source ~/.vim/filetypes.vim - -" check current folder and all parent folders for tags files -set tags=tags;/ - " specify mutt aliases path, autocomplete aliases with @@ in insert mode let g:mutt_aliases_file = '~/.mutt/aliases' -" toggle autoformatting of text -"nnoremap <leader>f :exe 'set fo'.(&fo=~'a'?'-':'+').'=a'<CR> - +source ~/.vim/appearance.vim +source ~/.vim/keybinds.vim +source ~/.vim/filetypes.vim