From 8eee1c45bef74aa6094f463f9888ac653958b3dc Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 30 Mar 2015 10:25:12 +0200 Subject: Moving back to stow for management reasons: dotfiles.sh misbehaving on freebsd --- vim/.vim/autoload/pathogen.vim | 1 + vim/.vim/ftplugin/python.vim | 4 ++++ vim/.vimrc | 36 ++++++++++++++++++++++++++++++++++++ vim/autoload/pathogen.vim | 1 - vim/ftplugin/python.vim | 4 ---- 5 files changed, 41 insertions(+), 5 deletions(-) create mode 120000 vim/.vim/autoload/pathogen.vim create mode 100644 vim/.vim/ftplugin/python.vim create mode 100644 vim/.vimrc delete mode 120000 vim/autoload/pathogen.vim delete mode 100644 vim/ftplugin/python.vim (limited to 'vim') diff --git a/vim/.vim/autoload/pathogen.vim b/vim/.vim/autoload/pathogen.vim new file mode 120000 index 0000000..9a7227e --- /dev/null +++ b/vim/.vim/autoload/pathogen.vim @@ -0,0 +1 @@ +../vim-pathogen/autoload/pathogen.vim \ No newline at end of file diff --git a/vim/.vim/ftplugin/python.vim b/vim/.vim/ftplugin/python.vim new file mode 100644 index 0000000..183ef4b --- /dev/null +++ b/vim/.vim/ftplugin/python.vim @@ -0,0 +1,4 @@ +set tabstop=8 +set expandtab +set shiftwidth=4 +set softtabstop=4 diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..fa53318 --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,36 @@ +execute pathogen#infect() + +let mapleader=";" + +syntax on +filetype plugin indent on + +set number +set hlsearch +set list +set modeline + +set background=dark +set foldmethod=indent +set listchars=trail:·,tab:▸\ ,eol:¬ + +autocmd StdinReadPre * let s:std_in=1 +autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif + +function! AppendModeline() + let l:modeline = printf(" vim: set ts=%d sw=%d tw=%d %set :", + \ &tabstop, &shiftwidth, &textwidth, &expandtab ? '' : 'no') + let l:modeline = substitute(&commentstring, "%s", l:modeline, "") + call append(line("$"), l:modeline) +endfunction +nnoremap ml :call AppendModeline() + +noremap "" +noremap! +noremap "" +noremap! +noremap "" +noremap! +noremap "" +noremap! diff --git a/vim/autoload/pathogen.vim b/vim/autoload/pathogen.vim deleted file mode 120000 index 9a7227e..0000000 --- a/vim/autoload/pathogen.vim +++ /dev/null @@ -1 +0,0 @@ -../vim-pathogen/autoload/pathogen.vim \ No newline at end of file diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim deleted file mode 100644 index 183ef4b..0000000 --- a/vim/ftplugin/python.vim +++ /dev/null @@ -1,4 +0,0 @@ -set tabstop=8 -set expandtab -set shiftwidth=4 -set softtabstop=4 -- cgit v1.2.3